remove unneeded nolint-comments (nolintlint), disable deprecated linters
Remove nolint-comments that weren't hit by linters, and remove the "structcheck"
and "varcheck" linters, as they have been deprecated:
WARN [runner] The linter 'structcheck' is deprecated (since v1.49.0) due to: The owner seems to have abandoned the linter. Replaced by unused.
WARN [runner] The linter 'varcheck' is deprecated (since v1.49.0) due to: The owner seems to have abandoned the linter. Replaced by unused.
WARN [linters context] structcheck is disabled because of generics. You can track the evolution of the generics support by following the https://github.com/golangci/golangci-lint/issues/2649.
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
@@ -84,7 +84,7 @@ func setResources(s *Spec) {
|
||||
}
|
||||
}
|
||||
|
||||
//nolint:unused // not used on all platforms
|
||||
//nolint:nolintlint,unused // not used on all platforms
|
||||
func setResourcesWindows(s *Spec) {
|
||||
if s.Windows != nil {
|
||||
if s.Windows.Resources == nil {
|
||||
@@ -93,7 +93,7 @@ func setResourcesWindows(s *Spec) {
|
||||
}
|
||||
}
|
||||
|
||||
//nolint:unused // not used on all platforms
|
||||
//nolint:nolintlint,unused // not used on all platforms
|
||||
func setCPU(s *Spec) {
|
||||
setResources(s)
|
||||
if s.Linux != nil {
|
||||
@@ -103,7 +103,7 @@ func setCPU(s *Spec) {
|
||||
}
|
||||
}
|
||||
|
||||
//nolint:deadcode,unused // not used on all platforms
|
||||
//nolint:deadcode,nolintlint,unused // not used on all platforms
|
||||
func setCPUWindows(s *Spec) {
|
||||
setResourcesWindows(s)
|
||||
if s.Windows != nil {
|
||||
|
||||
Reference in New Issue
Block a user