Skip to content
Myr

Address golangci-lint deprecation warnings, enable some more linters (#2152)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

* Address golangci-lint linter deprecation warnings 1.59.0 outputs: WARN [lintersdb] The name "gas" is deprecated. The linter has been renamed to: gosec. WARN [lintersdb] The linter named "megacheck" is deprecated. It has been split into: gosimple, staticcheck, unused. * Enable some more linters, address finding

authored by Ville Skyttä · committed by GitHub · parent 8003b74 · Browse files · 2 files+5 added−8 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

2 files+5 added−8 removed

  • other:+5 added−8 removed

2 files+5 added−8 removed

modified:.golangci.yml+5 added-7 removed
modified:command.go-1 removed
1458 unmodified lines
1459}14601461// DebugFlags used to determine which flags have been assigned to which commands1462// and which persist.1463// nolint:goconst1463func (c *Command) DebugFlags() {1464 c.Println("DebugFlags called on", c.Name())1465 var debugflags func(*Command)1466
430 unmodified lines