-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy path.golangci.yml
30 lines (29 loc) · 1.02 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
linters:
enable:
- gofmt
- goimports
- unparam
- unconvert
- interfacer
- megacheck
- staticcheck
- unused
- gosimple
- dupl
- goconst
- gocyclo
- nakedret
- scopelint
- gocritic
- misspell
issues:
# Not using default exclusions because we want to require comments on public
# # functions and types.
# exclude-use-default: false
# exclude:
# # errcheck: Almost all programs ignore errors on these functions and in most cases it's ok
# - Error return value of .((os\.)?std(out|err)\..*|.*Close|.*Flush|os\.Remove(All)?|.*printf?|os\.(Un)?Setenv). is not checked
# # golint: False positive when tests are defined in package 'test'
# - func name will be used as test\.Test.* by other packages, and that stutters; consider calling this
# # govet: Common false positives
# - (possible misuse of unsafe.Pointer|should have signature)