From 101c48d56ffce40b5690d7be06fdde31cc7fc588 Mon Sep 17 00:00:00 2001 From: Frederic BIDON Date: Fri, 14 Aug 2026 08:55:53 +0200 Subject: [PATCH] doc: fix codefactor report codefactor.io uses revive directly (not golangci-lint) so we need to add a specific configuration to remain consistent across rules. In particular the tolerated complexity is raised from the default 10, which is way too low and croaks a lot of false alarms. Signed-off-by: Frederic BIDON --- revive.toml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 revive.toml diff --git a/revive.toml b/revive.toml new file mode 100644 index 000000000..18cddaa2b --- /dev/null +++ b/revive.toml @@ -0,0 +1,18 @@ +# revive configuration used by codefactor.io. +# +# This is redundant with .golangci.yml, since revive is part of golangci-lint, +# but we need to configure it to remain consistent across reporting tools. + +ignore-generated-header = false +severity = "warning" +confidence = 0.8 +error-code = 0 +warning-code = 0 +enable-default-rules = true + +[rule.exported] +disabled = true +[rule.cyclomatic] +arguments = [22] +[rule.cognitive-complexity] +arguments = [22]