1
0
Fork 0
mirror of https://github.com/spf13/cobra synced 2025-04-07 07:19:16 +00:00

Enable some more linters, address finding

This commit is contained in:
Ville Skyttä 2024-06-01 08:31:29 +03:00
parent 157d0ef977
commit 17d4f8fc5d
2 changed files with 3 additions and 4 deletions

View file

@ -30,7 +30,7 @@ linters:
- goconst
- gocritic
#- gocyclo
#- gofmt
- gofmt
- goimports
#- gomnd
#- goprintffuncname
@ -39,10 +39,10 @@ linters:
- govet
- ineffassign
#- lll
#- misspell
- misspell
#- nakedret
#- noctx
#- nolintlint
- nolintlint
#- rowserrcheck
#- scopelint
- staticcheck

View file

@ -1460,7 +1460,6 @@ func (c *Command) UseLine() string {
// DebugFlags used to determine which flags have been assigned to which commands
// and which persist.
// nolint:goconst
func (c *Command) DebugFlags() {
c.Println("DebugFlags called on", c.Name())
var debugflags func(*Command)