mirror of
https://github.com/lukaszraczylo/filepuff-mcp.git
synced 2026-10-12 04:54:27 +00:00
The config used v1 keys under a v2 header, so golangci-lint config verify rejected it and the Lint job failed. This change moves the exclusions to linters.exclusions and the output order to output.sort-order. The old linter settings never took effect. Enforcing them reports 62 issues in the current code. Only the staticcheck setting stays, because it reports none. The gocyclo, errcheck and govet settings need a separate cleanup.
39 lines
808 B
YAML
39 lines
808 B
YAML
version: "2"
|
|
|
|
run:
|
|
timeout: 5m
|
|
go: '1.26'
|
|
|
|
linters:
|
|
enable:
|
|
- errcheck # Check for unchecked errors
|
|
- govet # Vet examines Go source code
|
|
- ineffassign # Detect ineffectual assignments
|
|
- staticcheck # Advanced static analysis (includes gosimple)
|
|
- unused # Check for unused code
|
|
- gocyclo # Check cyclomatic complexity
|
|
- misspell # Check for misspelled words
|
|
settings:
|
|
staticcheck:
|
|
checks: ["all"]
|
|
exclusions:
|
|
rules:
|
|
# Exclude some linters from running on tests
|
|
- path: _test\.go
|
|
linters:
|
|
- gocyclo
|
|
- errcheck
|
|
- gosec
|
|
|
|
formatters:
|
|
enable:
|
|
- gofmt # Check formatting
|
|
|
|
issues:
|
|
max-issues-per-linter: 0
|
|
max-same-issues: 0
|
|
|
|
output:
|
|
sort-order:
|
|
- file
|