-
Notifications
You must be signed in to change notification settings - Fork 3
/
.golangci.yml
57 lines (51 loc) · 1.8 KB
/
.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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
linters-settings:
govet:
check-shadowing: true
gci:
# put imports beginning with prefix after 3rd-party packages;
# it's a comma-separated list of prefixes
local-prefixes: github.com/deptofdefense/awsutil
goimports:
# put imports beginning with prefix after 3rd-party packages;
# it's a comma-separated list of prefixes
local-prefixes: github.com/deptofdefense/awsutil,github.com/deptofdefense
golint:
# minimal confidence for issues, default is 0.8
min-confidence: 0.7
linters:
enable:
- deadcode
- errcheck
- gci
- gofmt
- goimports
- golint
- gosec
- govet
- ineffassign
- staticcheck
- structcheck
- typecheck
- varcheck
disable:
- gosimple #deprecated https://github.com/golangci/golangci-lint/issues/357
- unused #deprecated https://github.com/dominikh/go-tools/tree/master/cmd/unused
fast: false
issues:
# golangci-lint excludes by default some checks they consider "annoying"
# A better practice is for each repo to choose which ones to disable
exclude-use-default: false
fix: true
# Maximum issues count per one linter. Set to 0 to disable. Default is 50.
max-issues-per-linter: 0
# Maximum count of issues with the same text. Set to 0 to disable. Default is 3.
max-same-issues: 0
# Show only new issues: if there are unstaged changes or untracked files,
# only those changes are analyzed, else only changes in HEAD~ are analyzed.
# It's a super-useful option for integration of golangci-lint into existing
# large codebase. It's not practical to fix all existing issues at the moment
# of integration: much better don't allow issues in new code.
# Default is false.
new: false
run:
modules-download-mode: readonly