File tree 2 files changed +6
-5
lines changed
pkg/component/controller/workerconfig
2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 10
10
11
11
linters :
12
12
enable :
13
- - depguard # Checks if package imports are in a list of acceptable packages
14
- - gofmt # Checks whether code was gofmt-ed
15
- - goheader # Checks is file headers matche a given pattern
16
- - revive # Stricter drop-in replacement for golint
13
+ - depguard # Checks if package imports are in a list of acceptable packages
14
+ - errorlint # Find code that will cause problems with Go's error wrapping scheme
15
+ - gofmt # Checks whether code was gofmt-ed
16
+ - goheader # Checks is file headers matche a given pattern
17
+ - revive # Stricter drop-in replacement for golint
17
18
18
19
linters-settings :
19
20
depguard :
Original file line number Diff line number Diff line change @@ -583,7 +583,7 @@ func TestReconciler_runReconcileLoop(t *testing.T) {
583
583
584
584
underTest .runReconcileLoop (ctx , updates , nil )
585
585
586
- switch ctx .Err () {
586
+ switch ctx .Err () { //nolint:errorlint // as per context contract
587
587
case context .Canceled :
588
588
break // this is the good case
589
589
case context .DeadlineExceeded :
You can’t perform that action at this time.
0 commit comments