forked from google/mtail
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
49 lines (44 loc) · 1.33 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
service:
prepare:
- make install_deps
run:
tests: true
build-tags:
- integration
linters-settings:
govet:
check-shadowing: true
linters:
enable-all: true
disable:
- maligned
- megacheck
- lll
- gocyclo
- unparam
# Not sure what this is telling me yet.
- scopelint
# How dare you tell me not to use inits.
- gochecknoinits
# Flags are fine, as are test tables.
- gochecknoglobals
issues:
max-per-linter: 0
max-same: 0
exclude-use-default: true
exclude:
# # Captured by errcheck.
# - '^(G104|G204):'
# # Very commonly not checked.
# - 'Error return value of .(.*\.Help|.*\.MarkFlagRequired|(os\.)?std(out|err)\..*|.*Close|.*Flush|os\.Remove(All)?|.*printf?|os\.(Un)?Setenv). is not checked'
# #- 'exported method (.*\.MarshalJSON|.*\.UnmarshalJSON|.*\.EntityURN|.*\.GoString|.*\.Pos) should have comment or be unexported'
# If you liked it you shoulda put a gofix on it.
- 'composite literal uses unkeyed fields'
# I like shadowing err
- 'declaration of "err" shadows declaration'
# #- 'bad syntax for struct tag key'
# #- 'bad syntax for struct tag pair'
# goyacc generated error in three locations
- 'this value of `mtailDollar.* is never used'
# Incorrectly reports undeclared in same package
- "undeclared name:"