forked from moonD4rk/HackBrowserData
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.golangci.yml
67 lines (65 loc) · 1.32 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
run:
timeout: '5m'
skip-dirs:
- 'assets'
allow-parallel-runners: true
modules-download-mode: 'readonly'
linters:
enable:
- 'asciicheck'
- 'depguard'
- 'dogsled'
- 'errorlint'
- 'exportloopref'
- 'gofmt'
- 'goheader'
- 'goimports'
- 'gomodguard'
- 'goprintffuncname'
- 'gosec'
- 'govet'
- 'ineffassign'
- 'makezero'
- 'misspell'
- 'paralleltest'
- 'prealloc'
- 'predeclared'
- 'revive'
- 'typecheck'
- 'unconvert'
- 'whitespace'
disable:
# unsupported lint with golang 1.18+ ref: https://github.com/golangci/golangci-lint/issues/2649
- 'bodyclose'
- 'gosimple'
- 'noctx'
- 'sqlclosecheck'
- 'staticcheck'
- 'structcheck'
- 'stylecheck'
- 'unused'
- 'errcheck'
- 'deadcode'
- 'varcheck'
issues:
exclude-use-default: false
exclude:
- should have a package comment
- should have comment
# G101: Potential hardcoded credentials
- G101
# G103: Use of unsafe calls should be audited
- G103
# G304: Potential file inclusion via variable
- G304
# G404, G401, G502, G505: weak cryptographic list
- G401
- G404
- G502
- G505
exclude-rules:
- path: browser/browser\.go
linters:
- 'unused'
max-issues-per-linter: 0
max-same-issues: 0