Skip to content

Commit facfe28

Browse files
author
Chris Gilmer
committed
Add golangci-lint configuration
1 parent e0883cd commit facfe28

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.golangci.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
linters-settings:
2+
govet:
3+
check-shadowing: true
4+
goimports:
5+
# put imports beginning with prefix after 3rd-party packages;
6+
# it's a comma-separated list of prefixes
7+
local-prefixes: github.com/trussworks/find-guardduty-user
8+
9+
linters:
10+
enable:
11+
- deadcode
12+
- errcheck
13+
- gofmt
14+
- goimports
15+
- golint
16+
- gosec
17+
- govet
18+
- ineffassign
19+
- staticcheck
20+
- structcheck
21+
- typecheck
22+
- varcheck
23+
disable:
24+
- gosimple #deprecated https://github.com/golangci/golangci-lint/issues/357
25+
- unused #deprecated https://github.com/dominikh/go-tools/tree/master/cmd/unused
26+
fast: false
27+
28+
issues:
29+
# golangci-lint excludes by default some checks they consider "annoying"
30+
# A better practice is for each repo to choose which ones to disable
31+
exclude-use-default: false
32+
fix: true
33+
34+
run:
35+
modules-download-mode: readonly

0 commit comments

Comments
 (0)