Skip to content

Commit 021b7e5

Browse files
committed
migrate broken golangci configuration
1 parent 418f4fb commit 021b7e5

File tree

2 files changed

+27
-12
lines changed

2 files changed

+27
-12
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ website/node_modules
2525
*.test
2626
*.iml
2727
trace.txt
28+
*.bck.yml
2829

2930
website/vendor
3031

.golangci.yml

+26-12
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,41 @@
1-
# Visit https://golangci-lint.run/ for usage documentation
2-
# and information on other useful linters
3-
issues:
4-
max-per-linter: 0
5-
max-same-issues: 0
6-
1+
version: "2"
72
linters:
8-
disable-all: true
3+
default: none
94
enable:
105
- durationcheck
116
- errcheck
12-
- exportloopref
137
- forcetypeassert
148
- godot
15-
- gofmt
16-
- gosimple
9+
- govet
1710
- ineffassign
1811
- makezero
1912
- misspell
2013
- nilerr
2114
- predeclared
2215
- staticcheck
23-
- tenv
2416
- unconvert
2517
- unparam
2618
- unused
27-
- govet
19+
exclusions:
20+
generated: lax
21+
presets:
22+
- comments
23+
- common-false-positives
24+
- legacy
25+
- std-error-handling
26+
paths:
27+
- third_party$
28+
- builtin$
29+
- examples$
30+
issues:
31+
max-issues-per-linter: 0
32+
max-same-issues: 0
33+
formatters:
34+
enable:
35+
- gofmt
36+
exclusions:
37+
generated: lax
38+
paths:
39+
- third_party$
40+
- builtin$
41+
- examples$

0 commit comments

Comments
 (0)