...
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 - gomoddirectives # I think it's broken
32 - gosec
33 - govet
34 - interfacer # deprecated
35 - ifshort
36 - ireturn # No, I _LIKE_ returning interfaces
37 - lll
38 - maintidx # Do this in code review
39 - maligned # deprecated
40 - makezero
41 - nakedret
42 - nestif
43 - nlreturn
44 - paralleltest
45 - scopelint # deprecated
46 - tagliatelle
47 - testpackage
48 - thelper # Tests are fine
49 - varnamelen # Short names are ok
50 - wrapcheck
51 - wsl
52
53issues:
54 exclude-rules:
55 # not needed
56 - path: /*.go
57 text: "ST1003: should not use underscores in package names"
58 linters:
59 - stylecheck
60 - path: /*.go
61 text: "don't use an underscore in package name"
62 linters:
63 - revive
64 - path: /main.go
65 linters:
66 - errcheck
67 - path: internal/codegen/codegen.go
68 linters:
69 - errcheck
70 - path: internal/jwxtest/jwxtest.go
71 linters:
72 - errcheck
73 - errchkjson
74 - forcetypeassert
75 - path: /*_test.go
76 linters:
77 - errcheck
78 - errchkjson
79 - forcetypeassert
80 - path: /*_example_test.go
81 linters:
82 - forbidigo
83 - path: cmd/jwx/jwx.go
84 linters:
85 - forbidigo
86
87 # Maximum issues count per one linter. Set to 0 to disable. Default is 50.
88 max-issues-per-linter: 0
89
90 # Maximum count of issues with the same text. Set to 0 to disable. Default is 3.
91 max-same-issues: 0
92
View as plain text