ci: enable nestif linter (#9363)

This commit is contained in:
Ammar Bandukwala
2023-08-30 16:50:43 -05:00
committed by GitHub
parent d29696296f
commit 8f3b4075c7
4 changed files with 199 additions and 150 deletions
+3 -1
View File
@@ -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