Skip to content

Commit 8dbfa9b

Browse files
committed
remove deprecated gomnd, add mnd to .golangci
Signed-off-by: Christoph Voigt <[email protected]>
1 parent 8be3a59 commit 8dbfa9b

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

.golangci.yaml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ linters-settings:
9898
# Default: true
9999
skipRecvDeref: false
100100

101-
gomnd:
101+
mnd:
102102
# List of function patterns to exclude from analysis.
103103
# Values always ignored: `time.Date`,
104104
# `strconv.FormatInt`, `strconv.FormatUint`, `strconv.FormatFloat`,
@@ -143,7 +143,7 @@ linters-settings:
143143
nolintlint:
144144
# Exclude following linters from requiring an explanation.
145145
# Default: []
146-
allow-no-explanation: [ funlen, gocognit, lll ]
146+
allow-no-explanation: [funlen, gocognit, lll]
147147
# Enable to require an explanation of nonzero length after each nolint directive.
148148
# Default: false
149149
require-explanation: true
@@ -172,7 +172,6 @@ linters-settings:
172172
nestif:
173173
min-complexity: 8
174174

175-
176175
linters:
177176
disable-all: true
178177
enable:
@@ -283,9 +282,9 @@ issues:
283282

284283
exclude-rules:
285284
- source: "(noinspection|TODO)"
286-
linters: [ godot ]
285+
linters: [godot]
287286
- source: "//noinspection"
288-
linters: [ gocritic ]
287+
linters: [gocritic]
289288
- path: "_test\\.go"
290289
linters:
291290
- bodyclose

0 commit comments

Comments
 (0)