mirror of
https://github.com/spf13/cobra
synced 2024-11-24 14:47: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
|
||||
#- goheader
|
||||
- goimports
|
||||
- golint # !
|
||||
#- golint ! Use revive instead
|
||||
#- gomnd
|
||||
#- gomoddirectives
|
||||
#- gomodguard
|
||||
|
@ -99,7 +99,7 @@ linters:
|
|||
#- prealloc
|
||||
#- predeclared
|
||||
#- promlinter
|
||||
#- revive
|
||||
- revive
|
||||
#- rowserrcheck
|
||||
#- scopelint !
|
||||
#- sqlclosecheck
|
||||
|
|
|
@ -1261,7 +1261,7 @@ func TestValidArgsFuncCmdContext(t *testing.T) {
|
|||
}
|
||||
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")
|
||||
|
||||
// Test completing an empty string on the childCmd
|
||||
|
|
Loading…
Reference in a new issue