mirror of
https://github.com/coder/coder.git
synced 2026-06-02 20:48:20 +00:00
ci: enable nestif linter (#9363)
This commit is contained in:
+3
-1
@@ -131,7 +131,8 @@ linters-settings:
|
||||
- trialer
|
||||
|
||||
nestif:
|
||||
min-complexity: 4 # Min complexity of if statements (def 5, goal 4)
|
||||
# goal: 10
|
||||
min-complexity: 20
|
||||
|
||||
revive:
|
||||
# see https://github.com/mgechev/revive#available-rules for details.
|
||||
@@ -237,6 +238,7 @@ linters:
|
||||
# create a good culture around cognitive complexity.
|
||||
# - gocyclo
|
||||
- gocognit
|
||||
- nestif
|
||||
- goimports
|
||||
- gomodguard
|
||||
- gosec
|
||||
|
||||
Reference in New Issue
Block a user