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

View file

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