Skip to content

Commit e94f6d0

Browse files
authored
Address golangci-lint deprecation warnings, enable some more linters (#2152)
* 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
1 parent 8003b74 commit e94f6d0

File tree

2 files changed

+5
-8
lines changed

2 files changed

+5
-8
lines changed

.golangci.yml

+5-7
Original file line numberDiff line numberDiff line change
@@ -26,28 +26,26 @@ linters:
2626
- errcheck
2727
#- exhaustive
2828
#- funlen
29-
- gas
3029
#- gochecknoinits
3130
- goconst
3231
- gocritic
3332
#- gocyclo
34-
#- gofmt
33+
- gofmt
3534
- goimports
3635
#- gomnd
3736
#- goprintffuncname
38-
#- gosec
37+
- gosec
3938
- gosimple
4039
- govet
4140
- ineffassign
4241
#- lll
43-
- megacheck
44-
#- misspell
42+
- misspell
4543
#- nakedret
4644
#- noctx
47-
#- nolintlint
45+
- nolintlint
4846
#- rowserrcheck
4947
#- scopelint
50-
#- staticcheck
48+
- staticcheck
5149
#- structcheck ! deprecated since v1.49.0; replaced by 'unused'
5250
- stylecheck
5351
#- typecheck

command.go

-1
Original file line numberDiff line numberDiff line change
@@ -1460,7 +1460,6 @@ func (c *Command) UseLine() string {
14601460

14611461
// DebugFlags used to determine which flags have been assigned to which commands
14621462
// and which persist.
1463-
// nolint:goconst
14641463
func (c *Command) DebugFlags() {
14651464
c.Println("DebugFlags called on", c.Name())
14661465
var debugflags func(*Command)

0 commit comments

Comments
 (0)