debian-forge-composer/.golangci.yml
Michael Vogt 138bc73e37 osbuild-worker-executor: appease gosec
Note that gosec IMHO is a bit silly here, the heuristics used are
note very good, i.e. the code is already validating the external
inputs and it's not clear to me that "filepath.Clean()" will help
but it seems to supress the error. I hope gosec provides value
in other places, here it seems to be adding work :/

I also excluded "gosec" from any _test.go files, I do not see
why we should gosec tests?
2024-06-05 18:26:08 +02:00

28 lines
579 B
YAML

linters-settings:
govet:
disable:
- shadow # default value recommended by golangci
- composites
gomoddirectives:
replace-local: false
linters:
enable:
- gosec
- gomoddirectives
run:
build-tags:
- integration
timeout: 5m
issues:
# 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: ^cmd/osbuild-worker-executor/.*_test\.go$
linters: ["gosec"]