1run:
 2  tests: true
 3
 4output:
 5  print-issued-lines: false
 6
 7linters:
 8  enable-all: true
 9  disable:
10    - lll
11    - gocyclo
12    - dupl
13    - gochecknoglobals
14    - funlen
15    - godox
16    - wsl
17    - gocognit
18    - nolintlint
19    - testpackage
20    - godot
21    - nestif
22    - paralleltest
23    - nlreturn
24    - cyclop
25    - gci
26    - gofumpt
27    - errorlint
28    - exhaustive
29    - wrapcheck
30    - stylecheck
31    - thelper
32    - nonamedreturns
33    - revive
34    - dupword
35    - exhaustruct
36    - varnamelen
37    - forcetypeassert
38    - ireturn
39    - maintidx
40    - govet
41    - testableexamples
42    - musttag
43    - depguard
44    - goconst
45    - perfsprint
46    - mnd
47    - predeclared
48    - recvcheck
49    - tenv
50    - err113
51
52linters-settings:
53  gocyclo:
54    min-complexity: 10
55  dupl:
56    threshold: 100
57  goconst:
58    min-len: 8
59    min-occurrences: 3
60  forbidigo:
61    #forbid:
62    #  - (Must)?NewLexer$
63    exclude_godoc_examples: false
64
65
66issues:
67  exclude-dirs:
68    - _examples
69  max-per-linter: 0
70  max-same: 0
71  exclude-use-default: false
72  exclude:
73    # Captured by errcheck.
74    - '^(G104|G204):'
75    # Very commonly not checked.
76    - 'Error return value of .(.*\.Help|.*\.MarkFlagRequired|(os\.)?std(out|err)\..*|.*Close|.*Flush|os\.Remove(All)?|.*printf?|os\.(Un)?Setenv). is not checked'
77    - 'exported method (.*\.MarshalJSON|.*\.UnmarshalJSON|.*\.EntityURN|.*\.GoString|.*\.Pos) should have comment or be unexported'
78    - 'composite literal uses unkeyed fields'
79    - 'declaration of "err" shadows declaration'
80    - 'should not use dot imports'
81    - 'Potential file inclusion via variable'
82    - 'should have comment or be unexported'
83    - 'comment on exported var .* should be of the form'
84    - 'at least one file in a package should have a package comment'
85    - 'string literal contains the Unicode'
86    - 'methods on the same type should have the same receiver name'
87    - '_TokenType_name should be _TokenTypeName'
88    - '`_TokenType_map` should be `_TokenTypeMap`'
89    - 'rewrite if-else to switch statement'