Merge pull request #2566 from kolyshkin/golang-yml

.golangci.yml: simplify
This commit is contained in:
Miloslav Trmač 2025-04-10 19:34:53 +02:00 committed by GitHub
commit a6ff545f30
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -2,10 +2,12 @@ version: "2"
linters:
settings:
staticcheck:
checks: ["all", "-ST1000", "-ST1003", "-ST1016", "-ST1020", "-ST1021", "-ST1022", "-ST1005"] # golangci-lint's default, we add -ST1005
checks:
# Compared to golangci-lint v2.0.2 defaults, we dont exclude
# ST1003, ST1016, ST1020, ST1021, ST1022 as we don't hit those.
- all
- -ST1000 # Incorrect or missing package comment.
- -ST1005 # Incorrectly formatted error string.
exclusions:
presets:
- comments
- common-false-positives
- legacy
- std-error-handling