From b4d62a4b73c4fe357429d4c3a764c686ce34a9a9 Mon Sep 17 00:00:00 2001 From: mpenning Date: Wed, 29 Nov 2023 16:40:42 -0600 Subject: [PATCH] Add revive linter --- dev_tools/deploy_docs/revive_lint.toml | 29 ++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 dev_tools/deploy_docs/revive_lint.toml diff --git a/dev_tools/deploy_docs/revive_lint.toml b/dev_tools/deploy_docs/revive_lint.toml new file mode 100644 index 0000000..b331892 --- /dev/null +++ b/dev_tools/deploy_docs/revive_lint.toml @@ -0,0 +1,29 @@ +enableAllRules = true + +# When set to false, ignores files with "GENERATED" header, similar to golint +ignoreGeneratedHeader = true + +# Sets the default severity to "warning" +severity = "warning" + +# Sets the default failure confidence. This means that linting errors +# with less than 0.8 confidence will be ignored. +confidence = 0.8 + +# Sets the error code for failures with severity "error" +errorCode = 0 + +# Sets the error code for failures with severity "warning" +warningCode = 0 + +# Configuration of the `cyclomatic` rule. Here we specify that +# the rule should fail if it detects code with higher complexity than 10. +[rule.cyclomatic] + arguments = [10] + +# Sets the severity of the `package-comments` rule to "error". +[rule.package-comments] + severity = "error" + +[rule.line-length-limit] + Disabled = true