golangci: use 'revive' instead of 'golint'

This commit is contained in:
umarcor 2022-08-22 02:54:08 +02:00
parent 287f2e9923
commit c056decb48
2 changed files with 3 additions and 3 deletions

View file

@ -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

View file

@ -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