- Change version from number to string: version: "2" - Remove deprecated exclude-use-default option - Change exclude-rules to exclude (new format in v2.6) - Remove deprecated output section (print-issued-lines, print-linter-name) - Remove linters-settings (not allowed in v2.6 schema validation) Fixes CI validation errors with golangci-lint v2.6.1: - version type validation error - exclude-use-default and exclude-rules not allowed - output options not allowed - linters-settings not allowed at root level
30 lines
495 B
YAML
30 lines
495 B
YAML
# golangci-lint configuration
|
|
# See https://golangci-lint.run/usage/configuration/
|
|
|
|
version: "2"
|
|
|
|
run:
|
|
timeout: 5m
|
|
tests: true
|
|
modules-download-mode: readonly
|
|
|
|
linters:
|
|
enable:
|
|
- errcheck
|
|
- govet
|
|
- staticcheck
|
|
- gosec
|
|
disable:
|
|
- gocritic # Can be enabled later for stricter checks
|
|
|
|
issues:
|
|
max-issues-per-linter: 0
|
|
max-same-issues: 0
|
|
exclude:
|
|
# Exclude test files from some checks
|
|
- path: _test\.go
|
|
linters:
|
|
- errcheck
|
|
- gosec
|
|
|