Repository navigation
Expand file tree
/
Copy pathgolang-ci.yml
More file actions
99 lines (99 loc) · 1.93 KB
/
Copy pathgolang-ci.yml
File metadata and controls
99 lines (99 loc) · 1.93 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
run:
timeout: "10m"
linters:
disable-all: true
enable:
# Format
- "asciicheck"
- "bidichk"
- "gofmt"
- "gofumpt"
# Comments
- "misspell"
- "revive"
# Context
- "containedctx"
- "contextcheck"
- "noctx"
# Simplify
- "ineffassign"
- "gosimple"
- "unused"
- "unconvert"
- "unparam"
- "typecheck"
- "goconst"
- "prealloc"
- "sloglint"
# Error
- "goerr113"
- "errname"
- "errcheck"
- "errchkjson"
- "nilerr"
- "nilnil"
- "wrapcheck"
# sql
- "rowserrcheck"
- "sqlclosecheck"
# Debug
- "govet"
- "bodyclose"
- "staticcheck"
# Code Complexity
- "maintidx"
- "gocognit"
- "gocritic"
- "gocyclo"
- "nakedret"
- "nolintlint"
linters-settings:
sloglint:
attr-only: true
revive:
rules:
- name: exported
severity: warning
disabled: false
arguments:
- checkPrivateReceivers
- name: package-comments
severity: warning
disabled: true
wrapcheck:
ignorePackageGlobs:
- "google.golang.org/grpc/status"
- "google.golang.org/grpc/internal/status"
errcheck:
check-type-assertions: true
exclude-functions:
- (*net/http.Server).Shutdown(context.Context)
- (*database/sql.Rows).Close
- (*database/sql.DB).Close
- (io.Closer).Close
- github.com/Unleash/unleash-client-go/v3.Close
gocritic:
enabled-tags:
- diagnostic
- style
- performance
- opinionated
- experimental
gocyclo:
min-complexity: 10
nolintlint:
allow-unused: false
allow-leading-space: false
allow-no-explanation:
- errcheck
- misspell
require-explanation: true
require-specific: true
issues:
exclude-rules:
- path: (.+)_test.go
linters:
- goerr113
exclude-use-default: false
max-issues-per-linter: 0
max-same-issues: 0