Skip to content

Commit

Permalink
golangci: use 'revive' instead of 'golint'
Browse files Browse the repository at this point in the history
  • Loading branch information
umarcor committed Oct 9, 2022
1 parent f86fd31 commit 53c87d4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ linters:
#- gofumpt
#- goheader
- goimports
- golint # !
#- golint ! Use revive instead
#- gomnd
#- gomoddirectives
#- gomodguard
Expand Down Expand Up @@ -99,7 +99,7 @@ linters:
#- prealloc
#- predeclared
#- promlinter
#- revive
- revive
#- rowserrcheck
#- scopelint !
#- sqlclosecheck
Expand Down
2 changes: 1 addition & 1 deletion completions_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 53c87d4

Please sign in to comment.