Skip to content

Commit 852bdfb

Browse files
committed
Fix golangci-lint config
1 parent a7de372 commit 852bdfb

File tree

2 files changed

+11
-14
lines changed

2 files changed

+11
-14
lines changed

.github/.golangci.v1.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
# https://golangci-lint.run/usage/configuration/
22
linters-settings:
33
govet:
4-
check-shadowing: true
5-
golint:
6-
min-confidence: 0
4+
enable:
5+
- shadow
76
misspell:
87
locale: US
98
errcheck:

.github/.golangci.v2.yml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,27 @@
11
# https://golangci-lint.run/usage/configuration/
22
version: "2"
3-
linters-settings:
4-
govet:
5-
check-shadowing: true
6-
misspell:
7-
locale: US
8-
errcheck:
9-
check-type-assertions: false
10-
check-blank: false
113

124
linters:
135
default: none
146
enable:
157
- govet
168
- misspell
179
- errcheck
10+
settings:
11+
govet:
12+
enable:
13+
- shadow
14+
misspell:
15+
locale: US
16+
errcheck:
17+
check-type-assertions: false
18+
check-blank: false
1819
exclusions:
1920
presets:
2021
- comments
2122
- common-false-positives
2223
- legacy
2324
- std-error-handling
2425

25-
formatters:
26-
default: none
27-
2826
issues:
2927
max-same-issues: 0

0 commit comments

Comments
 (0)