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
Copy file name to clipboardExpand all lines: .golangci.yml
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -57,7 +57,7 @@ linters-settings:
57
57
# Default: true
58
58
skipRecvDeref: false
59
59
60
-
gomnd:
60
+
mnd:
61
61
# List of function patterns to exclude from analysis.
62
62
# Values always ignored: `time.Date`
63
63
# Default: []
@@ -167,7 +167,7 @@ linters:
167
167
- durationcheck # check for two durations multiplied together
168
168
- errname # Checks that sentinel errors are prefixed with the Err and error types are suffixed with the Error.
169
169
- errorlint # errorlint is a linter for that can be used to find code that will cause problems with the error wrapping scheme introduced in Go 1.13.
170
-
- execinquery # execinquery is a linter about query string checker in Query function which reads your Go src files and warning it finds
170
+
# Removed execinquery (deprecated). execinquery is a linter about query string checker in Query function which reads your Go src files and warning it finds
171
171
- exhaustive # check exhaustiveness of enum switch statements
172
172
- exportloopref # checks for pointers to enclosing loop variables
173
173
- forbidigo # Forbids identifiers
@@ -180,14 +180,14 @@ linters:
180
180
- gocyclo # Computes and checks the cyclomatic complexity of functions
181
181
- godot # Check if comments end in a period
182
182
- goimports # In addition to fixing imports, goimports also formats your code in the same style as gofmt.
183
-
- gomnd # An analyzer to detect magic numbers.
184
183
- gomoddirectives # Manage the use of 'replace', 'retract', and 'excludes' directives in go.mod.
185
184
- gomodguard # Allow and block list linter for direct Go module dependencies. This is different from depguard where there are different block types for example version constraints and module recommendations.
186
185
- goprintffuncname # Checks that printf-like functions are named with f at the end
187
186
- gosec # Inspects source code for security problems
188
187
- lll # Reports long lines
189
188
- makezero # Finds slice declarations with non-zero initial length
190
189
# - nakedret # Finds naked returns in functions greater than a specified function length
190
+
- mnd # An analyzer to detect magic numbers.
191
191
- nestif # Reports deeply nested if statements
192
192
- nilerr # Finds the code that returns nil even if it checks that the error is not nil.
193
193
- nilnil # Checks that there is no simultaneous return of nil error and an invalid value.
0 commit comments