File tree Expand file tree Collapse file tree 1 file changed +54
-96
lines changed
Expand file tree Collapse file tree 1 file changed +54
-96
lines changed Original file line number Diff line number Diff line change 1- linters-settings :
2- lll :
3- line-length : 120
4- gci :
5- sections :
6- - standard
7- - default
8- - prefix(github.com/cloudnative-pg/plugin-barman-cloud)
9- - blank
10- - dot
11- gosec :
12- excludes :
13- - G101 # remove this exclude when https://github.com/securego/gosec/issues/1001 is fixed
14-
1+ version : " 2"
152linters :
16- # please, do not use `enable-all`: it's deprecated and will be removed soon.
17- # inverted configuration with `enable-all` and `disable` is not scalable during updates of golangci-lint
18- disable-all : true
3+ default : none
194 enable :
205 - asciicheck
216 - bodyclose
7+ - copyloopvar
228 - dogsled
239 - dupl
2410 - durationcheck
2511 - errcheck
26- - copyloopvar
27- - gci
12+ - ginkgolinter
2813 - gocognit
2914 - goconst
3015 - gocritic
3116 - gocyclo
32- - gofmt
33- - gofumpt
3417 - goheader
35- - goimports
3618 - gomoddirectives
3719 - gomodguard
3820 - goprintffuncname
3921 - gosec
40- - gosimple
4122 - govet
42- - ginkgolinter
4323 - importas
4424 - ineffassign
4525 - lll
@@ -53,82 +33,60 @@ linters:
5333 - rowserrcheck
5434 - sqlclosecheck
5535 - staticcheck
56- - stylecheck
5736 - thelper
5837 - tparallel
59- - typecheck
6038 - unconvert
6139 - unparam
6240 - unused
6341 - wastedassign
6442 - whitespace
65-
66- # to be checked:
67- # - errorlint
68- # - forbidigo
69- # - forcetypeassert
70- # - goerr113
71- # - ifshort
72- # - nilerr
73- # - nlreturn
74- # - noctx
75- # - nolintlint
76- # - paralleltest
77- # - promlinter
78- # - tagliatelle
79- # - wrapcheck
80-
81- # don't enable:
82- # - cyclop
83- # - depguard
84- # - exhaustive
85- # - exhaustivestruct
86- # - funlen
87- # - gochecknoglobals
88- # - gochecknoinits
89- # - godot
90- # - godox
91- # - gomnd
92- # - testpackage
93- # - wsl
94-
95- # deprecated:
96- # - deadcode
97- # - golint
98- # - interfacer
99- # - maligned
100- # - scopelint
101- # - structcheck
102- # - varcheck
103-
104- run :
105- timeout : 10m
106-
107- issues :
108- exclude-rules :
109- # Allow dot imports for ginkgo and gomega
110- - source : ginkgo|gomega
111- linters :
112- - revive
113- text : " should not use dot imports"
114- # Exclude some linters from running on tests files.
115- - path : _test\.go
116- linters :
117- - goconst
118- # Exclude lll issues for lines with long annotations
119- - linters :
120- - lll
121- source : " //\\ s*\\ +"
122- # We have no control of this in zz_generated files and it looks like that excluding those files is not enough
123- # so we disable "ST1016: methods on the same type should have the same receiver name" in api directory
124- - linters :
125- - stylecheck
126- text : " ST1016:"
127- path : api/
128- exclude-use-default : false
129- exclude-dirs :
130- # This tests are generated by kubebuilder
131- - test
132- exclude-files :
133- - zz_generated.*
134- - internal/operator/controller/suite_test.go
43+ settings :
44+ lll :
45+ line-length : 120
46+ exclusions :
47+ generated : lax
48+ rules :
49+ - linters :
50+ - revive
51+ text : should not use dot imports
52+ source : ginkgo|gomega
53+ - linters :
54+ - goconst
55+ path : _test\.go
56+ - linters :
57+ - lll
58+ source : //\s*\+
59+ - linters :
60+ - staticcheck
61+ path : api/
62+ text : ' ST1016:'
63+ paths :
64+ - zz_generated.*
65+ - internal/operator/controller/suite_test.go
66+ - test
67+ - third_party$
68+ - builtin$
69+ - examples$
70+ formatters :
71+ enable :
72+ - gci
73+ - gofmt
74+ - gofumpt
75+ - goimports
76+ settings :
77+ gci :
78+ sections :
79+ - standard
80+ - default
81+ - prefix(github.com/cloudnative-pg/plugin-barman-cloud)
82+ - blank
83+ - dot
84+ exclusions :
85+ generated : lax
86+ paths :
87+ - zz_generated.*
88+ - internal/operator/controller/suite_test.go
89+ - test
90+ - third_party$
91+ - builtin$
92+ - examples$
You can’t perform that action at this time.
0 commit comments