aboutsummaryrefslogtreecommitdiffstats
path: root/.golangci.yml
diff options
context:
space:
mode:
authorDmitry Vyukov <dvyukov@google.com>2019-04-23 16:58:23 +0300
committerDmitry Vyukov <dvyukov@google.com>2019-04-23 17:58:54 +0300
commit51fc038380062aec71b4e39af9227c6db0be4fd8 (patch)
tree8c623343f218d68aa6cd73f06c81f5d1ae25a71f /.golangci.yml
parent8095117313da96970c3ee300819ff6511b022fba (diff)
.golangci.yml: update
Enable more linters. Tune settings for existings. Fix excludes. Update #977
Diffstat (limited to '.golangci.yml')
-rw-r--r--.golangci.yml19
1 files changed, 15 insertions, 4 deletions
diff --git a/.golangci.yml b/.golangci.yml
index 7abce1602..443aa5d19 100644
--- a/.golangci.yml
+++ b/.golangci.yml
@@ -5,7 +5,7 @@ run:
deadline: 8m
skip-dirs:
- pkg/kd
- - pkg/ifuzz/gen
+ - pkg/ifuzz/generated
- sys/akaros/gen
- sys/freebsd/gen
- sys/fuchsia/gen
@@ -21,10 +21,10 @@ run:
linters:
enable:
- lll
+ - vet
- gofmt
- golint
- structcheck
- - megacheck
- unconvert
- deadcode
- goconst
@@ -33,13 +33,20 @@ linters:
- varcheck
- misspell
- gocyclo
- - vet
- vetshadow
- megacheck
+ - stylecheck
- govet
disable:
+ - typecheck
- ineffassign
- errcheck
+ - interfacer
+ - unparam
+ - nakedret
+ - prealloc
+ - scopelint
+ - gocritic
linters-settings:
lll:
@@ -48,15 +55,19 @@ linters-settings:
min-complexity: 24
dupl:
threshold: 60
+ goconst:
+ min-len: 7
+ min-occurrences: 4
issues:
exclude-use-default: false
exclude:
- "exported .* should have comment"
- "comment on .* should be of the form"
- - "(sys/.*/init.*|sys/targets/common.go).* don't use ALL_CAPS in Go names"
- "declaration of \"err\" shadows"
exclude-rules:
- path: (pkg/csource/generated.go|pkg/report/linux.go|pkg/build/linux_generated.go)
linters:
- lll
+ - path: (sys/.*/init.*|sys/targets/common.go)
+ text: "don't use ALL_CAPS in Go names"