1
0
Fork 0
mirror of https://github.com/spf13/cobra synced 2025-04-10 08:47:20 +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 - goconst
- gocritic - gocritic
#- gocyclo #- gocyclo
#- gofmt - gofmt
- goimports - goimports
#- gomnd #- gomnd
#- goprintffuncname #- goprintffuncname
@ -39,10 +39,10 @@ linters:
- govet - govet
- ineffassign - ineffassign
#- lll #- lll
#- misspell - misspell
#- nakedret #- nakedret
#- noctx #- noctx
#- nolintlint - nolintlint
#- rowserrcheck #- rowserrcheck
#- scopelint #- scopelint
- staticcheck - staticcheck

View file

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