Skip to content

Commit

Permalink
Switch from golint to revive
Browse files Browse the repository at this point in the history
since otherwise golangci-lint was complaining that golint is
abandoned.
Note that I deleted exclusions for `golint` because they did not seem
to affect anything.
  • Loading branch information
msugakov committed Sep 21, 2021
1 parent 033e752 commit 08db249
Showing 1 changed file with 3 additions and 17 deletions.
20 changes: 3 additions & 17 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,7 @@ run:
issues:
exclude-use-default: false

exclude-rules:
- linters:
- golint
text: "should have a package comment, unless it's in another file for this package"
- linters:
- golint
text: "should not use dot imports"
- linters:
- golint
text: "returns unexported type .* which can be annoying to use"
- linters:
- golint
text: "error strings should not be capitalized or end with punctuation or a newline"

linters-settings:
golint:
min-confidence: 0
govet:
enable-all: true
disable:
Expand Down Expand Up @@ -62,6 +46,8 @@ linters-settings:
allow-unused: false # report any unused nolint directives
require-explanation: false # don't require an explanation for nolint directives
require-specific: true # require nolint directives to be specific about which linter is being skipped
revive:
min-confidence: 0

linters:
# please, do not use `enable-all`: it's deprecated and will be removed soon.
Expand All @@ -88,7 +74,6 @@ linters:
# - goerr113
- gofmt
- goimports
- golint
# - gomnd
# - goprintffuncname
# - gosec
Expand All @@ -103,6 +88,7 @@ linters:
# - nestif
- nolintlint
# - prealloc
- revive
- rowserrcheck
# - scopelint
# - staticcheck
Expand Down

0 comments on commit 08db249

Please sign in to comment.