...
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 - gomnd
22 - gocognit
23 - goerr113
24 - nolintlint
25 - testpackage
26 - godot
27 - nestif
28 - paralleltest
29 - nlreturn
30 - cyclop
31 - exhaustivestruct
32 - gci
33 - gofumpt
34 - errorlint
35 - exhaustive
36 - ifshort
37 - wrapcheck
38 - stylecheck
39
40linters-settings:
41 govet:
42 check-shadowing: true
43 gocyclo:
44 min-complexity: 10
45 dupl:
46 threshold: 100
47 goconst:
48 min-len: 8
49 min-occurrences: 3
50 forbidigo:
51 forbid:
52 - (Must)?NewLexer
53 exclude_godoc_examples: false
54
55
56issues:
57 max-per-linter: 0
58 max-same: 0
59 exclude-use-default: false
60 exclude:
61 # Captured by errcheck.
62 - '^(G104|G204):'
63 # Very commonly not checked.
64 - 'Error return value of .(.*\.Help|.*\.MarkFlagRequired|(os\.)?std(out|err)\..*|.*Close|.*Flush|os\.Remove(All)?|.*printf?|os\.(Un)?Setenv). is not checked'
65 - 'exported method (.*\.MarshalJSON|.*\.UnmarshalJSON|.*\.EntityURN|.*\.GoString|.*\.Pos) should have comment or be unexported'
66 - 'composite literal uses unkeyed fields'
67 - 'declaration of "err" shadows declaration'
68 - 'should not use dot imports'
69 - 'Potential file inclusion via variable'
70 - 'should have comment or be unexported'
71 - 'comment on exported var .* should be of the form'
72 - 'at least one file in a package should have a package comment'
73 - 'string literal contains the Unicode'
74 - 'methods on the same type should have the same receiver name'
75 - '_TokenType_name should be _TokenTypeName'
76 - '`_TokenType_map` should be `_TokenTypeMap`'
View as plain text