mirror of
https://github.com/containers/skopeo.git
synced 2025-12-24 12:58:04 +08:00
And also remove old, no longer needed validate-gofmt.sh script. golangci-lint checks the formatting already for us. And add a fmt make target that just runs golangci-lint fmt for easier use. Signed-off-by: Paul Holzinger <pholzing@redhat.com>
19 lines
429 B
YAML
19 lines
429 B
YAML
version: "2"
|
||
|
||
formatters:
|
||
enable:
|
||
- gofumpt
|
||
|
||
linters:
|
||
settings:
|
||
staticcheck:
|
||
checks:
|
||
# Compared to golangci-lint v2.0.2 defaults, we don’t 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:
|
||
- std-error-handling
|