Skip to content

Commit d561de3

Browse files
a-cordierkamiiiel
authored andcommitted
ci: remove unmaintained linters
1 parent 4b6e052 commit d561de3

File tree

1 file changed

+1
-23
lines changed

1 file changed

+1
-23
lines changed

.golangci.yml

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
#
1717
# This is the best config for golangci-lint based on my experience and opinion.
1818
# 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
2020

2121
run:
2222
# Timeout for analysis, e.g. 30s, 5m.
@@ -86,26 +86,6 @@ linters-settings:
8686
# Default: true
8787
skipRecvDeref: false
8888

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-
10989
gomodguard:
11090
blocked:
11191
# List of blocked modules.
@@ -189,7 +169,6 @@ linters:
189169
- durationcheck # check for two durations multiplied together
190170
- errname # Checks that sentinel errors are prefixed with the Err and error types are suffixed with the Error.
191171
- 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
193172
- exhaustive # check exhaustiveness of enum switch statements
194173
- exportloopref # checks for pointers to enclosing loop variables
195174
- forbidigo # Forbids identifiers
@@ -201,7 +180,6 @@ linters:
201180
- godot # Check if comments end in a period
202181
- gofmt
203182
- 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.
205183
- gomoddirectives # Manage the use of 'replace', 'retract', and 'excludes' directives in go.mod.
206184
- 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.
207185
- goprintffuncname # Checks that printf-like functions are named with f at the end

0 commit comments

Comments
 (0)