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
+1-23Lines changed: 1 addition & 23 deletions
Original file line number
Diff line number
Diff line change
@@ -16,7 +16,7 @@
16
16
#
17
17
# This is the best config for golangci-lint based on my experience and opinion.
18
18
# It is very strict, but not extremely strict.
19
-
# Feel free to adopt and change it for your needs.
19
+
# Feel free to adopt and change it for your needs
20
20
21
21
run:
22
22
# Timeout for analysis, e.g. 30s, 5m.
@@ -86,26 +86,6 @@ linters-settings:
86
86
# Default: true
87
87
skipRecvDeref: false
88
88
89
-
gomnd:
90
-
# List of function patterns to exclude from analysis.
91
-
# Values always ignored: `time.Date`
92
-
# Default: []
93
-
ignored-functions:
94
-
- os.Chmod
95
-
- os.Mkdir
96
-
- os.MkdirAll
97
-
- os.OpenFile
98
-
- os.WriteFile
99
-
- prometheus.ExponentialBuckets
100
-
- prometheus.ExponentialBucketsRange
101
-
- prometheus.LinearBuckets
102
-
- strconv.FormatFloat
103
-
- strconv.FormatInt
104
-
- strconv.FormatUint
105
-
- strconv.ParseFloat
106
-
- strconv.ParseInt
107
-
- strconv.ParseUint
108
-
109
89
gomodguard:
110
90
blocked:
111
91
# List of blocked modules.
@@ -189,7 +169,6 @@ linters:
189
169
- durationcheck # check for two durations multiplied together
190
170
- errname # Checks that sentinel errors are prefixed with the Err and error types are suffixed with the Error.
191
171
- 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.
192
-
- execinquery # execinquery is a linter about query string checker in Query function which reads your Go src files and warning it finds
193
172
- exhaustive # check exhaustiveness of enum switch statements
194
173
- exportloopref # checks for pointers to enclosing loop variables
195
174
- forbidigo # Forbids identifiers
@@ -201,7 +180,6 @@ linters:
201
180
- godot # Check if comments end in a period
202
181
- gofmt
203
182
- goimports # In addition to fixing imports, goimports also formats your code in the same style as gofmt.
204
-
- gomnd # An analyzer to detect magic numbers.
205
183
- gomoddirectives # Manage the use of 'replace', 'retract', and 'excludes' directives in go.mod.
206
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.
207
185
- goprintffuncname # Checks that printf-like functions are named with f at the end
0 commit comments