You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Disable all defaults, then enable individual linters explicitely
3
-
disable-all: true
4
+
# Disable all linters by default, then enable individual linters explicitly.
5
+
default: none
4
6
enable:
5
-
# Enable the ones that are by default
7
+
# Enable the ones that are by default.
6
8
- errcheck
7
-
- gosimple
8
9
- govet
9
10
- ineffassign
10
11
- staticcheck
11
12
- unused
12
-
# Enable remaining linters required to match checks performed by stand-alone staticcheck tool (corresponds to: staticcheck, stylecheck, gosimple and unused)
13
-
- stylecheck
14
13
# Add some additional linters
15
-
- goimports
16
-
- revive
17
-
- unconvert
18
14
- misspell
19
15
- prealloc
16
+
- revive
17
+
- unconvert
20
18
21
-
issues:
22
-
# Enable some lints excluded by default
23
-
exclude-use-default: false
19
+
formatters:
20
+
enable:
21
+
- goimports
24
22
23
+
issues:
25
24
# Maximum issues count per one linter. Set to 0 to disable. Default is 50.
26
25
max-issues-per-linter: 0
27
-
28
26
# Maximum count of issues with the same text. Set to 0 to disable. Default is 3.
29
27
max-same-issues: 0
30
28
31
29
run:
32
-
# Timeout for analysis, e.g. 30s, 5m. Default is 1m.
33
-
timeout: 3m
30
+
# Timeout for total work, e.g. 30s, 5m, 5m30s. Default is 0 (disabled).
Copy file name to clipboardExpand all lines: npiperelay.go
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -19,10 +19,10 @@ import (
19
19
20
20
// How long to sleep between failures while polling
21
21
const (
22
-
cSECURITY_SQOS_PRESENT=0x100000//nolint:revive,stylecheck // Don't include revive and stylecheck when running golangci-lint to stop complain about use of underscores in Go names
23
-
cSECURITY_ANONYMOUS=0//nolint:revive,stylecheck // Don't include revive and stylecheck when running golangci-lint to stop complain about use of underscores in Go names
24
-
cPOLL_TIMEOUT=200*time.Millisecond//nolint:revive,stylecheck // Don't include revive and stylecheck when running golangci-lint to stop complain about use of underscores in Go names
25
-
cPOLL_ATTEMPTS=300//nolint:revive,stylecheck // Don't include revive and stylecheck when running golangci-lint to stop complain about use of underscores in Go names
22
+
cSECURITY_SQOS_PRESENT=0x100000//nolint:revive // Don't include revive when running golangci-lint to stop complain about use of underscores in Go names
23
+
cSECURITY_ANONYMOUS=0//nolint:revive // Don't include revive when running golangci-lint to stop complain about use of underscores in Go names
24
+
cPOLL_TIMEOUT=200*time.Millisecond//nolint:revive // Don't include revive when running golangci-lint to stop complain about use of underscores in Go names
25
+
cPOLL_ATTEMPTS=300//nolint:revive // Don't include revive when running golangci-lint to stop complain about use of underscores in Go names
0 commit comments