mirror of
https://github.com/spf13/cobra
synced 2024-11-24 22:57:12 +00:00
golangci: use 'revive' instead of 'golint'
This commit is contained in:
parent
287f2e9923
commit
c056decb48
2 changed files with 3 additions and 3 deletions
|
@ -68,7 +68,7 @@ linters:
|
||||||
#- gofumpt
|
#- gofumpt
|
||||||
#- goheader
|
#- goheader
|
||||||
- goimports
|
- goimports
|
||||||
- golint # !
|
#- golint ! Use revive instead
|
||||||
#- gomnd
|
#- gomnd
|
||||||
#- gomoddirectives
|
#- gomoddirectives
|
||||||
#- gomodguard
|
#- gomodguard
|
||||||
|
@ -99,7 +99,7 @@ linters:
|
||||||
#- prealloc
|
#- prealloc
|
||||||
#- predeclared
|
#- predeclared
|
||||||
#- promlinter
|
#- promlinter
|
||||||
#- revive
|
- revive
|
||||||
#- rowserrcheck
|
#- rowserrcheck
|
||||||
#- scopelint !
|
#- scopelint !
|
||||||
#- sqlclosecheck
|
#- sqlclosecheck
|
||||||
|
|
|
@ -1261,7 +1261,7 @@ func TestValidArgsFuncCmdContext(t *testing.T) {
|
||||||
}
|
}
|
||||||
rootCmd.AddCommand(childCmd)
|
rootCmd.AddCommand(childCmd)
|
||||||
|
|
||||||
//nolint:golint,staticcheck // We can safely use a basic type as key in tests.
|
//nolint:golint,revive,staticcheck // We can safely use a basic type as key in tests.
|
||||||
ctx := context.WithValue(context.Background(), "testKey", "123")
|
ctx := context.WithValue(context.Background(), "testKey", "123")
|
||||||
|
|
||||||
// Test completing an empty string on the childCmd
|
// Test completing an empty string on the childCmd
|
||||||
|
|
Loading…
Reference in a new issue