1run:
2 tests: true
3 skip-dirs:
4 - _examples
5
6output:
7 print-issued-lines: false
8
9linters:
10 enable-all: true
11 disable:
12 - maligned
13 - megacheck
14 - lll
15 - gocyclo
16 - dupl
17 - gochecknoglobals
18 - funlen
19 - godox
20 - wsl
21
22linters-settings:
23 govet:
24 check-shadowing: true
25 gocyclo:
26 min-complexity: 10
27 dupl:
28 threshold: 100
29 goconst:
30 min-len: 8
31 min-occurrences: 3
32
33issues:
34 max-per-linter: 0
35 max-same: 0
36 exclude-use-default: false
37 exclude:
38 # Captured by errcheck.
39 - '^(G104|G204):'
40 # Very commonly not checked.
41 - 'Error return value of .(.*\.Help|.*\.MarkFlagRequired|(os\.)?std(out|err)\..*|.*Close|.*Flush|os\.Remove(All)?|.*printf?|os\.(Un)?Setenv). is not checked'
42 - 'exported method (.*\.MarshalJSON|.*\.UnmarshalJSON|.*\.EntityURN|.*\.GoString|.*\.Pos) should have comment or be unexported'
43 - 'composite literal uses unkeyed fields'
44 - 'declaration of "err" shadows declaration'
45 - 'should not use dot imports'
46 - 'Potential file inclusion via variable'
47 - 'should have comment or be unexported'
48 - 'comment on exported var .* should be of the form'
49 - 'at least one file in a package should have a package comment'
50 - 'string literal contains the Unicode'
51 - 'methods on the same type should have the same receiver name'