forked from owncast/owncast
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.golangci.yml
More file actions
78 lines (78 loc) · 1.59 KB
/
.golangci.yml
File metadata and controls
78 lines (78 loc) · 1.59 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
version: "2"
run:
go: "1.25.3"
modules-download-mode: readonly
tests: false
linters:
enable:
- bodyclose
- copyloopvar
- cyclop
- dupl
- forbidigo
- goconst
- gocritic
- godot
- godox
- goprintffuncname
- gosec
- misspell
- nakedret
- prealloc
- revive
- rowserrcheck
- sqlclosecheck
- unconvert
- unparam
- wastedassign
- whitespace
settings:
cyclop:
max-complexity: 15
package-average: 0
dupl:
threshold: 200
forbidigo:
forbid:
- pattern: ^(fmt\.Print(|f|ln)|print|println)
- pattern: ^panic.*$
gocritic:
disabled-checks:
- ifElseChain
- exitAfterDefer
revive:
rules:
- name: package-comments
disabled: true
exclusions:
generated: lax
rules:
- path: (.+)\.go$
text: Subprocess launch(ed with variable|ing should be audited)
- path: (.+)\.go$
text: Error return value of .((os\.)?std(out|err)\..*|.*Close|.*Flush|os\.Remove(All)?|.*print(f|ln)?|os\.(Un)?Setenv). is not checked
- path: (.+)\.go$
text: G307
- path: (.+)\.go$
text: composite literal uses unkeyed fields
- path: (.+)\.go$
text: 'SA1019.*aws-sdk-go.*deprecated'
- linters:
- cyclop
path: (.+)_test\.go
paths:
- third_party$
- builtin$
- examples$
issues:
max-issues-per-linter: 0
max-same-issues: 0
formatters:
enable:
- goimports
exclusions:
generated: lax
paths:
- third_party$
- builtin$
- examples$