66
|
1 run:
|
|
2 tests: true
|
|
3 skip-dirs:
|
|
4 - _examples
|
|
5
|
|
6 output:
|
|
7 print-issued-lines: false
|
|
8
|
|
9 linters:
|
|
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 - thelper
|
|
40
|
|
41 linters-settings:
|
|
42 govet:
|
|
43 check-shadowing: true
|
|
44 gocyclo:
|
|
45 min-complexity: 10
|
|
46 dupl:
|
|
47 threshold: 100
|
|
48 goconst:
|
|
49 min-len: 8
|
|
50 min-occurrences: 3
|
|
51 forbidigo:
|
|
52 #forbid:
|
|
53 # - (Must)?NewLexer$
|
|
54 exclude_godoc_examples: false
|
|
55
|
|
56
|
|
57 issues:
|
|
58 max-per-linter: 0
|
|
59 max-same: 0
|
|
60 exclude-use-default: false
|
|
61 exclude:
|
|
62 # Captured by errcheck.
|
|
63 - '^(G104|G204):'
|
|
64 # Very commonly not checked.
|
|
65 - 'Error return value of .(.*\.Help|.*\.MarkFlagRequired|(os\.)?std(out|err)\..*|.*Close|.*Flush|os\.Remove(All)?|.*printf?|os\.(Un)?Setenv). is not checked'
|
|
66 - 'exported method (.*\.MarshalJSON|.*\.UnmarshalJSON|.*\.EntityURN|.*\.GoString|.*\.Pos) should have comment or be unexported'
|
|
67 - 'composite literal uses unkeyed fields'
|
|
68 - 'declaration of "err" shadows declaration'
|
|
69 - 'should not use dot imports'
|
|
70 - 'Potential file inclusion via variable'
|
|
71 - 'should have comment or be unexported'
|
|
72 - 'comment on exported var .* should be of the form'
|
|
73 - 'at least one file in a package should have a package comment'
|
|
74 - 'string literal contains the Unicode'
|
|
75 - 'methods on the same type should have the same receiver name'
|
|
76 - '_TokenType_name should be _TokenTypeName'
|
|
77 - '`_TokenType_map` should be `_TokenTypeMap`'
|
|
78 - 'rewrite if-else to switch statement'
|