-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.golangci.yml
95 lines (91 loc) · 1.96 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
run:
# timeout for analysis, e.g. 30s, 5m, default is 1m
deadline: 1m
# default concurrency is a available CPU number
concurrency: 4
linters:
disable-all: true
enable:
- asciicheck
# - bodyclose
# - deadcode
# - depguard
- dogsled
- dupl
- errcheck
- exhaustive
# - exhaustivestruct
- exportloopref
# - funlen
# - gci
# - gochecknoinits
# - gochecknoglobals
- gocognit
- goconst
- gocritic
- gocyclo
- godox
- goerr113
- gofmt
- goimports
# - golint --> revive
# - revive
- gomnd
- gomodguard
- goprintffuncname
- gosec
- gosimple
- govet
- ineffassign
# - interfacer --> (deprecated)
# - lll
# - maligned --> govet:fieldalignment
- megacheck
- misspell
- nakedret
# - nestif
# - nlreturn
# - prealloc
- nilerr
# - nolintlint
- rowserrcheck
# - scopelint --> exportloopref
- exportloopref
- staticcheck
- stylecheck
# - testpackage
# - typecheck
- unconvert
- unparam
- unused
- whitespace
- wrapcheck
# - wslwsl
fast: false
linters-settings:
golint:
# minimal confidence for issues, default is 0.8
min-confidence: 0.0
gofmt:
# simplify code: gofmt with `-s` option, true by default
simplify: true
goimports:
# put imports beginning with prefix after 3rd-party packages;
# it's a comma-separated list of prefixes
local-prefixes: github.com/habx/graphcurl
sections:
- standard
- default
- prefix(github.com/habx)
gci:
sections:
- standard
- default
- prefix(github.com/habx)
- prefix(github.com/habx/graphcurl)
misspell:
locale: US
issues:
include:
- EXC0012 # EXC0012 revive: Annoying issue about not having a comment. The rare codebase has such comments
- EXC0014 # EXC0014 revive: Annoying issue about not having a comment. The rare codebase has such comments