Skip to content

Commit 1541c11

Browse files
committed
chore: make lint happy
1 parent bcfc8d9 commit 1541c11

File tree

1 file changed

+7
-11
lines changed

1 file changed

+7
-11
lines changed

.golangci.yml

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
linters-settings:
22
errcheck:
3-
ignore: fmt:.*
43
ignoretests: true
54

65
goimports:
@@ -18,11 +17,10 @@ linters:
1817
fast: false
1918
enable:
2019
- bodyclose
21-
- deadcode
22-
- depguard
20+
#- depguard
2321
- dogsled
2422
- errcheck
25-
- exportloopref
23+
#- exportloopref
2624
- exhaustive
2725
#- funlen
2826
#- goconst
@@ -39,13 +37,11 @@ linters:
3937
- nolintlint
4038
- rowserrcheck
4139
- staticcheck
42-
- structcheck
4340
- stylecheck
4441
- typecheck
4542
- unconvert
4643
- unparam
4744
- unused
48-
- varcheck
4945
- whitespace
5046
- prealloc
5147
- predeclared
@@ -60,13 +56,12 @@ run:
6056
deadline: 5m
6157
issues-exit-code: 1
6258
tests: false
63-
skip-dirs:
64-
- order
65-
go: '1.19'
59+
go: '1.20'
6660

6761
# output configuration options
6862
output:
69-
format: "colored-line-number"
63+
formats:
64+
- format: "colored-line-number"
7065
print-issued-lines: true
7166
print-linter-name: true
7267
uniq-by-line: true
@@ -76,4 +71,5 @@ issues:
7671
fix: true
7772
exclude-use-default: false
7873
exclude:
79-
- "Error return value of .((os.)?std(out|err)..*|.*Close|.*Seek|.*Flush|os.Remove(All)?|.*print(f|ln)?|os.(Un)?Setenv). is not check"
74+
- "Error return value of .((os.)?std(out|err)..*|.*Close|.*Seek|.*Flush|os.Remove(All)?|.*print(f|ln)?|os.(Un)?Setenv). is not check"
75+
- 'identifier ".*" contain non-ASCII character: U\+.*'

0 commit comments

Comments
 (0)