Skip to content

Commit d62cc35

Browse files
committed
fix: remove unsupported issues section from golangci-lint v2.x configs
The golangci-lint v2.8.0 schema validation rejected all properties in the issues section: - exclude-use-default - exclude-dirs - exclude-files - exclude - max-issues-per-linter - max-same-issues Solution: Removed the entire issues section from both config files. Linter behavior is now controlled exclusively through linters.settings, which is properly configured for govet, errcheck, gosec, gocritic, etc. Changes to backend/.golangci-fast.yml and backend/.golangci.yml: - Removed issues section entirely (v2.x schema incompatible) - Retained all linter-specific settings under linters.settings - Linters will run with their configured settings and default behaviors This resolves the jsonschema validation error: "additional properties ... not allowed" Fixes: #666 (golangci-lint v2.x schema validation)
1 parent 4feab20 commit d62cc35

2 files changed

Lines changed: 0 additions & 25 deletions

File tree

backend/.golangci-fast.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,3 @@ linters:
3131
- G501 # Blacklisted import crypto/md5
3232
- G502 # Blacklisted import crypto/des
3333
- G503 # Blacklisted import crypto/rc4
34-
35-
issues:
36-
exclude-use-default: false
37-
exclude-dirs:
38-
- vendor
39-
exclude-files:
40-
- ".*\\.gen\\.go$"
41-
exclude:
42-
# Allow test-specific patterns
43-
- 'Error return value of `.*(json\.Unmarshal|SetPassword|CreateProvider).*` is not checked'

backend/.golangci.yml

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -55,18 +55,3 @@ linters:
5555
- (*database/sql.Rows).Close
5656
- (gorm.io/gorm.Migrator).DropTable
5757
- (*net/http.Response.Body).Close
58-
59-
issues:
60-
exclude-use-default: false
61-
exclude:
62-
# Gosec exclusions - be specific to avoid hiding real issues
63-
# G104: Ignoring return values - already checked by errcheck
64-
- "G104:"
65-
# Allow shadow warnings in specific patterns
66-
- "shadows declaration"
67-
exclude-dirs:
68-
- vendor
69-
exclude-files:
70-
- ".*_test\\.go$" # Test-specific exclusions handled via patterns
71-
max-issues-per-linter: 0
72-
max-same-issues: 0

0 commit comments

Comments
 (0)