Skip to content

Commit

Permalink
Add revive linter
Browse files Browse the repository at this point in the history
  • Loading branch information
mpenning committed Nov 29, 2023
1 parent e46a7c4 commit b4d62a4
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions dev_tools/deploy_docs/revive_lint.toml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit b4d62a4

Please sign in to comment.