-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy path.golangci.yml
More file actions
127 lines (115 loc) · 2.2 KB
/
.golangci.yml
File metadata and controls
127 lines (115 loc) · 2.2 KB
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
version: "2"
linters:
default: all
disable:
- canonicalheader
- cyclop # handled by revive
- depguard
- err113
- exhaustruct
- funlen # handled by revive
- gochecknoglobals
- gocognit
- goconst
- gocyclo
- ireturn
- lll
- maintidx
- mnd
- testpackage
- unparam
- varnamelen
- wrapcheck
- wsl
settings:
dupl:
threshold: 200
gosec:
excludes:
- G304
- G701
- G702
- G703
- G704
- G705
- G706
config:
G301: "0755"
G306: "0644"
gosmopolitan:
allow-time-local: true
nestif:
min-complexity: 20
revive:
enable-all-rules: true
rules:
- name: add-constant
disabled: true
- name: cognitive-complexity
arguments:
- 100
- name: cyclomatic
arguments:
- 40
- name: flag-parameter
disabled: true
- name: function-length
arguments:
- 200
- 300
- name: get-return
disabled: true
- name: line-length-limit
disabled: true
- name: max-public-structs
disabled: true
- name: nested-structs
disabled: true
- name: confusing-results
disabled: true
- name: function-result-limit
arguments:
- 8
- name: argument-limit
arguments:
- 10
tagliatelle:
case:
rules:
json: snake
yaml: snake
exclusions:
generated: lax
rules:
- linters:
- errcheck
source: ^\s*defer\s+
- path: api/
text: "bad package name"
- path: internal/utils/
text: "bad package name"
paths:
- third_party$
- builtin$
- examples$
formatters:
enable:
- gci
- gofmt
- gofumpt
- goimports
settings:
gci:
sections:
- standard
- default
- prefix(github.com/nsec/askgod)
goimports:
local-prefixes:
- github.com/nsec/askgod
exclusions:
generated: lax
paths:
- third_party$
- builtin$
- examples$