Skip to content

Commit 14b0f5a

Browse files
committed
core: golangci-lint config fixes
1 parent 025e029 commit 14b0f5a

1 file changed

Lines changed: 1 addition & 39 deletions

File tree

.golangci.yaml

Lines changed: 1 addition & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
version: 2
2+
version: "2"
33
# Options for analysis running.
44
run:
55
# Number of operating system threads (`GOMAXPROCS`) that can execute golangci-lint simultaneously.
@@ -44,13 +44,6 @@ run:
4444
# Default: use Go version from the go.mod file, fallback on the env var `GOVERSION`, fallback on 1.17
4545
go: "1.25.0"
4646

47-
exclusions:
48-
# Which file paths to exclude: they will be analyzed, but issues from them won't be reported.
49-
# "/" will be replaced by the current OS file path separator to properly work on Windows.
50-
# Default: []
51-
paths:
52-
- "cmd/*/test-*"
53-
5447
linters:
5548
# Enable specific linter
5649
# https://golangci-lint.run/usage/linters/#enabled-by-default
@@ -183,10 +176,6 @@ linters:
183176
- T backend.IBackendConstrain
184177
- m map[string]int
185178

186-
# Enable only fast linters from enabled linters set (first run won't be fast)
187-
# Default: false
188-
fast: false
189-
190179
formatters:
191180
enable:
192181
# - gci
@@ -217,35 +206,8 @@ formatters:
217206
# # Default: false
218207
# no-lex-order: false
219208

220-
goimports:
221-
# A comma-separated list of prefixes, which, if set, checks import paths
222-
# with the given prefixes are grouped after 3rd-party packages.
223-
# Default: ""
224-
local-prefixes: github.com/hyp3rd/ewrap
225-
226-
gofmt:
227-
gofumpt:
228-
# Module path which contains the source code being formatted.
229-
# Default: ""
230-
module-path: github.com/hyp3rd/ewrap
231-
# Choose whether to use the extra rules.
232-
# Default: false
233-
extra-rules: true
234-
235209
# output configuration options
236210
output:
237-
# Print lines of code with issue.
238-
# Default: true
239-
print-issued-lines: true
240-
# Print linter name in the end of issue text.
241-
# Default: true
242-
print-linter-name: true
243-
# Add a prefix to the output file references.
244-
# Default: ""
245-
path-prefix: ""
246-
# Sort results by the order defined in `sort-order`.
247-
# Default: false
248-
sort-results: true
249211
# Order to use when sorting results.
250212
# Require `sort-results` to `true`.
251213
# Possible values: `file`, `linter`, and `severity`.

0 commit comments

Comments
 (0)