Skip to content

Commit 8c1add4

Browse files
author
Baton Admin
committed
chore: update .golangci.yml via baton-admin
1 parent a3f4e0b commit 8c1add4

File tree

1 file changed

+13
-6
lines changed

1 file changed

+13
-6
lines changed

.golangci.yml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
version: "2"
2-
2+
run:
3+
modules-download-mode: readonly
34
linters:
45
default: none
56
enable:
@@ -39,7 +40,11 @@ linters:
3940
exhaustive:
4041
default-signifies-exhaustive: true
4142
gocritic:
43+
enabled-checks:
44+
- ruleguard
4245
settings:
46+
ruleguard:
47+
rules: ${base-path}/tools/rules.go
4348
underef:
4449
skipRecvDeref: false
4550
govet:
@@ -96,20 +101,22 @@ linters:
96101
- linters:
97102
- godot
98103
source: (TODO)
104+
- path: (.+)\.go$
105+
text: third_party$
106+
- path: (.+)\.go$
107+
text: builtin$
108+
- path: (.+)\.go$
109+
text: examples$
99110
paths:
100111
- third_party$
101112
- builtin$
102113
- examples$
103-
104114
issues:
105115
max-same-issues: 50
106-
107116
formatters:
108-
enable:
109-
- goimports
110117
exclusions:
111118
generated: lax
112119
paths:
113120
- third_party$
114121
- builtin$
115-
- examples$
122+
- examples$

0 commit comments

Comments
 (0)