-
Notifications
You must be signed in to change notification settings - Fork 14
/
.golangci.yml
93 lines (89 loc) · 2.05 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
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
- gci
- gochecknoinits
# - gochecknoglobals
- gocognit
- goconst
- gocritic
- gocyclo
- godox
- goerr113
- gofmt
- goimports
# - golint --> revive
- gomnd
- goprintffuncname
- gosec
- gosimple
- govet
- ineffassign
# - interfacer --> (deprecated)
# - maligned --> govet:fieldalignment
- megacheck
- misspell
- nakedret
- nestif
- nlreturn
- prealloc
- nilerr
- rowserrcheck
# - scopelint --> exportloopref
- exportloopref
- staticcheck
- structcheck
- stylecheck
- testpackage
- typecheck
- unconvert
- unparam
- unused
- varcheck
- whitespace
- wrapcheck
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/service-webhooks-v2
sections:
- standard
- default
- prefix(github.com/habx)
gci:
sections:
- standard
- default
- prefix(github.com/habx)
misspell:
# Correct spellings using locale preferences for US or UK.
# Default is to use a neutral variety of English.
# Setting locale to US will correct the British spelling of 'colour' to 'color'.
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