1run:
2
3linters-settings:
4  govet:
5    enable-all: true
6    disable:
7      - shadow
8      - fieldalignment
9
10linters:
11  enable-all: true
12  disable:
13    - cyclop
14    - dupl
15    - exhaustive
16    - exhaustivestruct
17    - errorlint
18    - funlen
19    - gci
20    - gochecknoglobals
21    - gochecknoinits
22    - gocognit
23    - gocritic
24    - gocyclo
25    - godot
26    - godox
27    - goerr113
28    - gofumpt
29    - golint #deprecated
30    - gomnd
31    - gosec
32    - govet
33    - interfacer # deprecated
34    - ifshort
35    - lll
36    - maligned # deprecated
37    - makezero
38    - nakedret
39    - nestif
40    - nlreturn
41    - paralleltest
42    - scopelint # deprecated
43    - tagliatelle
44    - testpackage
45    - thelper
46    - wrapcheck
47    - wsl
48
49issues:
50  exclude-rules:
51    # not needed
52    - path: /*.go
53      text: "ST1003: should not use underscores in package names"
54      linters:
55        - stylecheck
56    - path: /*.go
57      text: "don't use an underscore in package name"
58      linters:
59        - revive
60    - path: /main.go
61      linters:
62        - errcheck
63    - path: internal/codegen/codegen.go
64      linters:
65        - errcheck
66    - path: /*_test.go
67      linters:
68        - errcheck
69        - forcetypeassert
70    - path: /*_example_test.go
71      linters:
72        - forbidigo
73    - path: cmd/jwx/jwx.go
74      linters:
75        - forbidigo
76
77  # Maximum issues count per one linter. Set to 0 to disable. Default is 50.
78  max-issues-per-linter: 0
79
80  # Maximum count of issues with the same text. Set to 0 to disable. Default is 3.
81  max-same-issues: 0
82
83