-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yaml
42 lines (41 loc) · 1.18 KB
/
.golangci.yaml
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
linters:
enable:
- asasalint
- copyloopvar
- decorder
- dogsled
- errname
- exhaustive
- fatcontext
- forcetypeassert
- gci
- ginkgolinter
- gofmt
- grouper
- importas
- makezero
- nakedret
- nilerr
- nilnil
- predeclared
- sloglint
#- wrapcheck # this one will be useful, but we have to fix a multitude of errors
#- unparam # when fixed, probably already covered by revive/gocritic
#- revive # too many errors, but useful, similar to gocritic, so probably choose one
#- prealloc # enable when can
#- nestif # enable once we clean up the code
#- gofumpt # fix all files before we switch to gofumpt
#- gocritic # too many failures for now
#- goconst # once we rewrite string literals to consts
#- gochecknoglobals # once we rewrite terraform codegen and drop global functions
#- funlen # couple of functions over 60 lines
#- err113 # disabled because of too many dynamic errors that don't wrap anything
linters-settings:
gci:
sections:
- standard
- default
- prefix(github.com/paloaltonetworks/pan-os-codegen)
issues:
exclude-dirs:
- generated/