-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path.golangci.yml
26 lines (23 loc) · 874 Bytes
/
.golangci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
linters:
enable:
- bodyclose
- exhaustive
- exportloopref
- gochecknoglobals
- tparallel
- unparam
- gocritic
# /home/runner/go/bin/golangci-lint run --no-config --enable=bodyclose,exhaustive,exportloopref,gochecknoglobals,tparallel,unparam ./...
# golangci-lint run --config .golangci.yml ./...
# /home/runner/go/bin/errcheck -ignoregenerated -ignoretests -asserts ./...
linters-settings:
gocritic:
# See https://go-critic.github.io/overview#checks-overview
# To check which checks are enabled run `GL_DEBUG=gocritic golangci-lint run`
disable-all: true
enabled-checks:
- ruleguard
settings:
ruleguard:
# The special '${configDir}' variable is substituted with the absolute directory containing the golangci config file.
rules: '/tmp/semgrep-go/semgrep-go-master/ruleguard.rules.go'