Skip to content

Commit 2a620fe

Browse files
committed
chore: 更新lint规则
1 parent b1eeef5 commit 2a620fe

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

.golangci.yml

+14-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,22 @@
11
linters-settings:
22
errcheck:
3-
ignore: fmt:.*,io/ioutil:^Read.*
4-
ignoretests: true
3+
exclude-functions:
4+
- fmt:.*
5+
- io/ioutil:^Read.*
56

67
goimports:
78
local-prefixes: github.com/LagrangeDev/LagrangeGo
89

10+
revive:
11+
rules:
12+
- name: var-naming
13+
severity: warning
14+
disabled: false
15+
exclude: [ "" ]
16+
arguments:
17+
- [ "Uid", "uid" ] # AllowList
18+
- [ ] # DenyList
19+
920
linters:
1021
# please, do not use `enable-all`: it's deprecated and will be removed soon.
1122
# inverted configuration with `enable-all` and `disable` is not scalable during updates of golangci-lint
@@ -58,7 +69,7 @@ run:
5869
# output configuration options
5970
output:
6071
formats:
61-
- format: "colored-line-number"
72+
- format: "colored-line-number"
6273
print-issued-lines: true
6374
print-linter-name: true
6475
uniq-by-line: true

0 commit comments

Comments
 (0)