Skip to content

Commit e1c261a

Browse files
committed
Switch from golint to revive
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.
1 parent 82d0212 commit e1c261a

File tree

1 file changed

+3
-17
lines changed

1 file changed

+3
-17
lines changed

.golangci.yml

+3-17
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,7 @@ run:
44
issues:
55
exclude-use-default: false
66

7-
exclude-rules:
8-
- linters:
9-
- golint
10-
text: "should have a package comment, unless it's in another file for this package"
11-
- linters:
12-
- golint
13-
text: "should not use dot imports"
14-
- linters:
15-
- golint
16-
text: "returns unexported type .* which can be annoying to use"
17-
- linters:
18-
- golint
19-
text: "error strings should not be capitalized or end with punctuation or a newline"
20-
217
linters-settings:
22-
golint:
23-
min-confidence: 0
248
govet:
259
enable-all: true
2610
disable:
@@ -62,6 +46,8 @@ linters-settings:
6246
allow-unused: false # report any unused nolint directives
6347
require-explanation: false # don't require an explanation for nolint directives
6448
require-specific: true # require nolint directives to be specific about which linter is being skipped
49+
revive:
50+
min-confidence: 0
6551

6652
linters:
6753
# please, do not use `enable-all`: it's deprecated and will be removed soon.
@@ -88,7 +74,6 @@ linters:
8874
# - goerr113
8975
- gofmt
9076
- goimports
91-
- golint
9277
# - gomnd
9378
# - goprintffuncname
9479
# - gosec
@@ -103,6 +88,7 @@ linters:
10388
# - nestif
10489
- nolintlint
10590
# - prealloc
91+
- revive
10692
- rowserrcheck
10793
# - scopelint
10894
# - staticcheck

0 commit comments

Comments
 (0)