debian-forge-composer/.golangci.yml
Brian C. Lane 06bc5d4d59 Makefile: Run golangci-lint config verify
This more closely matches the behavior of the github action.

In the .golangci.yml config file move the exclude-dirs list under issues
where it belongs.
2025-02-24 04:20:42 -08:00

33 lines
689 B
YAML

linters-settings:
govet:
disable:
- shadow # default value recommended by golangci
- composites
gomoddirectives:
replace-local: false
replace-allow-list:
- "github.com/osbuild/images"
linters:
enable:
- gosec
- gomoddirectives
run:
build-tags:
- integration
timeout: 5m
issues:
exclude-dirs:
- vendor
# Maximum issues count per one linter. Set to 0 to disable. Default is 50.
max-issues-per-linter: 0
# Maximum count of issues with the same text. Set to 0 to disable. Default is 3.
max-same-issues: 0
exclude-rules:
- path: ^(osbuild-composer/)?cmd/osbuild-worker-executor/.*_test\.go$
linters: ["gosec"]