aboutsummaryrefslogtreecommitdiffstats
path: root/.golangci.yml
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2020-06-06 11:34:20 +0200
committerDmitry Vyukov <dvyukov@google.com>2020-06-07 10:41:01 +0200
commit3f04838a10346e60b9dd81f0adb47c2518486d28 (patch)
tree76348cbffe82c8126b2f01ad5e1b6d757c1d3007 /.golangci.yml
parentcdf1aa4dc338ddd37917942e7d6b992f4e079a00 (diff)
.golangci.yml: make goconst checker more strict
Diffstat (limited to '.golangci.yml')
-rw-r--r--.golangci.yml7
1 files changed, 5 insertions, 2 deletions
diff --git a/.golangci.yml b/.golangci.yml
index 010e10490..7bee35ebf 100644
--- a/.golangci.yml
+++ b/.golangci.yml
@@ -76,8 +76,8 @@ linters-settings:
dupl:
threshold: 60
goconst:
- min-len: 7
- min-occurrences: 4
+ min-len: 3
+ min-occurrences: 3
nestif:
# TODO: consider reducing this value.
min-complexity: 12
@@ -109,3 +109,6 @@ issues:
- path: (dashboard/app/.*_test\.go)
linters:
- dupl
+ - path: (prog/.*_test\.go)
+ linters:
+ - goconst