File tree Expand file tree Collapse file tree 4 files changed +78
-116
lines changed Expand file tree Collapse file tree 4 files changed +78
-116
lines changed Original file line number Diff line number Diff line change 1
- ---
1
+ version : " 2 "
2
2
run :
3
+ concurrency : 6
3
4
build-tags :
4
5
- netgo
5
6
- e2e
6
- concurrency : 6
7
- deadline : 5m
8
7
linters :
9
- disable-all : true
8
+ default : none
10
9
enable :
11
10
- asciicheck
12
11
- bodyclose
13
- - deadcode
14
- - depguard
15
12
- dogsled
16
13
- dupl
14
+ - err113
17
15
- errcheck
18
16
- errorlint
19
17
- exhaustive
20
- - exportloopref
21
- - gci
22
18
- gochecknoinits
23
19
- gocognit
24
20
- goconst
25
21
- gocritic
26
22
- gocyclo
27
- # TODO(jaosorior): Re-Add later
28
- # - godot
29
23
- godox
30
- - goerr113
31
- - gofmt
32
- - gofumpt
33
24
- goheader
34
- - goimports
35
- - golint
36
- - gomnd
37
25
- gomodguard
38
26
- goprintffuncname
39
27
- gosec
40
- - gosimple
41
28
- govet
42
29
- ineffassign
43
- - interfacer
44
30
- lll
45
- - maligned
46
31
- misspell
32
+ - mnd
47
33
- nakedret
48
34
- nestif
49
35
- noctx
@@ -52,101 +38,80 @@ linters:
52
38
- rowserrcheck
53
39
- sqlclosecheck
54
40
- staticcheck
55
- - structcheck
56
- - stylecheck
57
41
- tparallel
58
- - typecheck
59
42
- unconvert
60
43
- unparam
61
44
- unused
62
- - varcheck
63
45
- whitespace
64
46
- wrapcheck
65
- # - exhaustivestruct
66
- # - funlen
67
- # - gochecknoglobals
68
- # - nlreturn
69
- # - scopelint
70
- # - testpackage
71
- # - wsl
72
- linters-settings :
73
- gci :
74
- local-prefixes : containers/selinuxd
75
- errcheck :
76
- check-type-assertions : true
77
- check-blank : true
78
- godox :
79
- keywords :
80
- - BUG
81
- - FIXME
82
- - HACK
83
- gocritic :
84
- enabled-checks :
85
- # Diagnostic
86
- - appendAssign
87
- - argOrder
88
- - badCond
89
- - caseOrder
90
- - codegenComment
91
- - commentedOutCode
92
- - deprecatedComment
93
- - dupArg
94
- - dupBranchBody
95
- - dupCase
96
- - dupSubExpr
97
- - exitAfterDefer
98
- - flagDeref
99
- - flagName
100
- - nilValReturn
101
- - offBy1
102
- - sloppyReassign
103
- - weakCond
104
- - octalLiteral
105
-
106
- # Performance
107
- - appendCombine
108
- - equalFold
109
- - hugeParam
110
- - indexAlloc
111
- - rangeExprCopy
112
- - rangeValCopy
113
-
114
- # Style
115
- - assignOp
116
- - boolExprSimplify
117
- - captLocal
118
- - commentFormatting
119
- - commentedOutImport
120
- - defaultCaseOrder
121
- - docStub
122
- - elseif
123
- - emptyFallthrough
124
- - emptyStringTest
125
- - hexLiteral
126
- - ifElseChain
127
- - methodExprCall
128
- - regexpMust
129
- - singleCaseSwitch
130
- - sloppyLen
131
- - stringXbytes
132
- - switchTrue
133
- - typeAssertChain
134
- - typeSwitchVar
135
- - underef
136
- - unlabelStmt
137
- - unlambda
138
- - unslice
139
- - valSwap
140
- - wrapperFunc
141
- - yodaStyleExpr
142
-
143
- # Opinionated
144
- - builtinShadow
145
- - importShadow
146
- - initClause
147
- - nestingReduce
148
- - paramTypeCombine
149
- - ptrToRefParam
150
- - typeUnparen
151
- - unnamedResult
152
- - unnecessaryBlock
47
+ settings :
48
+ errcheck :
49
+ check-type-assertions : true
50
+ check-blank : true
51
+ gocritic :
52
+ enabled-checks :
53
+ - commentedOutCode
54
+ - nilValReturn
55
+ - sloppyReassign
56
+ - weakCond
57
+ - octalLiteral
58
+ - appendCombine
59
+ - equalFold
60
+ - hugeParam
61
+ - indexAlloc
62
+ - rangeExprCopy
63
+ - rangeValCopy
64
+ - boolExprSimplify
65
+ - commentedOutImport
66
+ - docStub
67
+ - emptyFallthrough
68
+ - emptyStringTest
69
+ - hexLiteral
70
+ - methodExprCall
71
+ - stringXbytes
72
+ - typeAssertChain
73
+ - unlabelStmt
74
+ - yodaStyleExpr
75
+ - builtinShadow
76
+ - importShadow
77
+ - initClause
78
+ - nestingReduce
79
+ - paramTypeCombine
80
+ - ptrToRefParam
81
+ - typeUnparen
82
+ - unnamedResult
83
+ - unnecessaryBlock
84
+ godox :
85
+ keywords :
86
+ - BUG
87
+ - FIXME
88
+ - HACK
89
+ exclusions :
90
+ generated : lax
91
+ presets :
92
+ - comments
93
+ - common-false-positives
94
+ - legacy
95
+ - std-error-handling
96
+ paths :
97
+ - third_party$
98
+ - builtin$
99
+ - examples$
100
+ formatters :
101
+ enable :
102
+ - gci
103
+ - gofmt
104
+ - gofumpt
105
+ - goimports
106
+ settings :
107
+ gci :
108
+ sections :
109
+ - Standard
110
+ - Default
111
+ - Prefix(containers/selinuxd)
112
+ exclusions :
113
+ generated : lax
114
+ paths :
115
+ - third_party$
116
+ - builtin$
117
+ - examples$
Original file line number Diff line number Diff line change @@ -57,7 +57,6 @@ func getHTTPClient(sockpath string) *http.Client {
57
57
return & http.Client {
58
58
Transport : & http.Transport {
59
59
DialContext : func (_ context.Context , _ , _ string ) (net.Conn , error ) {
60
- //nolint: wrapcheck // let's not complicate the test
61
60
return net .Dial ("unix" , sockpath )
62
61
},
63
62
},
Original file line number Diff line number Diff line change @@ -124,7 +124,6 @@ func (ds *bboltDataStore) List() ([]string, error) {
124
124
if root == nil {
125
125
return ErrDataStoreNotInitialized
126
126
}
127
- //nolint:wrapcheck // this is a closure
128
127
return root .ForEach (func (k , v []byte ) error {
129
128
output = append (output , string (k ))
130
129
return nil
@@ -142,7 +141,6 @@ func (ds *bboltDataStore) Remove(policy string) error {
142
141
if root == nil {
143
142
return ErrDataStoreNotInitialized
144
143
}
145
- //nolint:wrapcheck // this is a closure
146
144
return root .DeleteBucket ([]byte (policy ))
147
145
})
148
146
if err != nil {
Original file line number Diff line number Diff line change 8
8
"strings"
9
9
"time"
10
10
11
- //nolint:golint,stylecheck
11
+ //nolint:staticcheck
12
12
. "github.com/onsi/ginkgo/v2"
13
- //nolint:golint,stylecheck
13
+ //nolint:staticcheck
14
14
. "github.com/onsi/gomega"
15
15
)
16
16
You can’t perform that action at this time.
0 commit comments