fix(config): remove version field and formatters for golangci-lint v1 compatibility
The CI uses golangci-lint v1.64.8 which doesn't support: - version: 2 field (v2-only feature) - formatters section (v2-only feature) Removed version field and formatters section to make config compatible with v1. Formatting will be checked by gofmt/goimports separately if needed.
This commit is contained in:
@@ -1,8 +1,6 @@
|
|||||||
# golangci-lint configuration
|
# golangci-lint configuration
|
||||||
# See https://golangci-lint.run/usage/configuration/
|
# See https://golangci-lint.run/usage/configuration/
|
||||||
|
|
||||||
version: 2
|
|
||||||
|
|
||||||
run:
|
run:
|
||||||
timeout: 5m
|
timeout: 5m
|
||||||
tests: true
|
tests: true
|
||||||
@@ -18,11 +16,6 @@ linters:
|
|||||||
disable:
|
disable:
|
||||||
- gocritic # Can be enabled later for stricter checks
|
- gocritic # Can be enabled later for stricter checks
|
||||||
|
|
||||||
formatters:
|
|
||||||
enable:
|
|
||||||
- gofmt
|
|
||||||
- goimports
|
|
||||||
|
|
||||||
linters-settings:
|
linters-settings:
|
||||||
revive:
|
revive:
|
||||||
rules:
|
rules:
|
||||||
|
|||||||
Reference in New Issue
Block a user