File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -73,6 +73,7 @@ linters:
73
73
- dogsled
74
74
- dupl
75
75
- errcheck
76
+ - exhaustive
76
77
- funlen
77
78
- gochecknoinits
78
79
- goconst
@@ -91,6 +92,7 @@ linters:
91
92
- lll
92
93
- misspell
93
94
- nakedret
95
+ - noctx
94
96
- nolintlint
95
97
- rowserrcheck
96
98
- scopelint
@@ -106,15 +108,13 @@ linters:
106
108
107
109
# don't enable:
108
110
# - asciicheck
109
- # - exhaustive (TODO: enable after next release; current release at time of writing is v1.27)
110
111
# - gochecknoglobals
111
112
# - gocognit
112
113
# - godot
113
114
# - godox
114
115
# - goerr113
115
116
# - maligned
116
117
# - nestif
117
- # - noctx (TODO: enable after next release; current release at time of writing is v1.27)
118
118
# - prealloc
119
119
# - testpackage
120
120
# - wsl
Original file line number Diff line number Diff line change @@ -446,8 +446,8 @@ func (e *Executor) executeRun(_ *cobra.Command, args []string) {
446
446
447
447
// to be removed when deadline is finally decommissioned
448
448
func (e * Executor ) setTimeoutToDeadlineIfOnlyDeadlineIsSet () {
449
- //lint:ignore SA1019 We want to promoted the deprecated config value when needed
450
- deadlineValue := e .cfg .Run .Deadline // nolint:staticcheck
449
+ // nolint:staticcheck
450
+ deadlineValue := e .cfg .Run .Deadline
451
451
if deadlineValue != 0 && e .cfg .Run .Timeout == defaultTimeout {
452
452
e .cfg .Run .Timeout = deadlineValue
453
453
}
You can’t perform that action at this time.
0 commit comments