git.iko.soy/typeable/oauth2-proxy
on master help sign in
typeable/oauth2-proxy/.golangci.yml
77 lines 1.7 kB history raw
1version: "2"
2linters:
3 default: none
4 enable:
5 - bodyclose
6 - copyloopvar
7 - dogsled
8 - goconst
9 - gocritic
10 - goprintffuncname
11 - gosec
12 - govet
13 - ineffassign
14 - misspell
15 - prealloc
16 - revive
17 - staticcheck
18 - unconvert
19 - unused
20 exclusions:
21 generated: lax
22 presets:
23 - comments
24 - common-false-positives
25 - legacy
26 - std-error-handling
27 rules:
28 - linters:
29 - bodyclose
30 - goconst
31 - gocritic
32 - gosec
33 - revive
34 - scopelint
35 - unconvert
36 path: _test\.go
37 - linters:
38 - revive
39 path: _test\.go
40 text: "dot-imports:"
41 # # If we have tests in shared test folders, these can be less strictly linted
42 - linters:
43 - bodyclose
44 - revive
45 - staticcheck
46 path: tests/.*_tests\.go
47 # See https://github.com/oauth2-proxy/oauth2-proxy/issues/3060
48 # https://staticcheck.dev/docs/checks/#QF1008
49 - linters:
50 - staticcheck
51 text: QF1008
52 - linters:
53 - revive
54 path: util/.*\.go$
55 text: "var-naming: avoid meaningless package names"
56 # pkg/version conflicts with go/version (added in Go 1.22)
57 - linters:
58 - revive
59 path: pkg/version/.*\.go$
60 text: "var-naming: avoid package names that conflict with"
61 - linters:
62 - prealloc
63 path: _test\.go
64 paths:
65 - third_party$
66 - builtin$
67 - examples$
68formatters:
69 enable:
70 - gofmt
71 - goimports
72 exclusions:
73 generated: lax
74 paths:
75 - third_party$
76 - builtin$
77 - examples$