aboutsummaryrefslogtreecommitdiffstats
path: root/.golangci.yml
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2020-06-04 21:47:34 +0200
committerDmitry Vyukov <dvyukov@google.com>2020-06-05 12:23:19 +0200
commit6c22a3d2ddd599dab260b2d36d91b0292254893c (patch)
tree78ff13181c320dd71f3e76b1e745f0f9f7539d82 /.golangci.yml
parent503fd5b2f7dbac79970770f0fc6754163dce1588 (diff)
.golangci.yml: enable nestif checker
Prevents functions with too many nested if's.
Diffstat (limited to '.golangci.yml')
-rw-r--r--.golangci.yml3
1 files changed, 3 insertions, 0 deletions
diff --git a/.golangci.yml b/.golangci.yml
index 38e46f9fd..db5ea28cb 100644
--- a/.golangci.yml
+++ b/.golangci.yml
@@ -35,6 +35,7 @@ linters:
- stylecheck
- govet
- whitespace
+ - nestif
disable:
- typecheck
- ineffassign
@@ -56,6 +57,8 @@ linters-settings:
goconst:
min-len: 7
min-occurrences: 4
+ nestif:
+ min-complexity: 12
issues:
exclude-use-default: false