1linters-settings:
2 govet:
3 settings:
4 printf:
5 funcs:
6 - (github.com/golangci/golangci-lint/pkg/logutils.Log).Infof
7 - (github.com/golangci/golangci-lint/pkg/logutils.Log).Warnf
8 - (github.com/golangci/golangci-lint/pkg/logutils.Log).Errorf
9 - (github.com/golangci/golangci-lint/pkg/logutils.Log).Fatalf
10 gocyclo:
11 min-complexity: 70
12 dupl:
13 threshold: 100
14 goconst:
15 min-len: 2
16 min-occurrences: 5
17 misspell:
18 locale: US
19
20linters:
21 # please, do not use `enable-all`: it's deprecated and will be removed soon.
22 # inverted configuration with `enable-all` and `disable` is not scalable during updates of golangci-lint
23 disable-all: true
24 enable:
25 # - deadcode
26 - errcheck
27 - goconst
28 - gocyclo
29 - revive
30 - gosimple
31 - govet
32 - ineffassign
33 - misspell
34 - staticcheck
35 # - structcheck
36 - typecheck
37 - unconvert
38 - unparam
39 - unused
40 # - varcheck
41
42issues:
43 exclude-rules:
44 - path: person.go # since in the person.go there are so many names that may detected as misspell
45 linters:
46 - misspell
47 - path: datetime.go
48 linters:
49 - misspell
50 - path: .
51 text: "parameter 'v' seems to be unused"
52run:
53 timeout: 5m