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:
parent
157d0ef977
commit
17d4f8fc5d
2 changed files with 3 additions and 4 deletions
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue