Commit graph

6 commits

Author SHA1 Message Date
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
Brian C. Lane
d0a5da6866 lint: Enable check for replace in go.mod 2023-07-20 15:07:20 +02:00
Juan Abia
5a1460a6d1 golangci: enable gosec in golangci
gosec is a security tools for golang. This change enables this tools
inside golangci-lint
2021-12-13 12:17:30 +02:00
Ondřej Budai
8d0984ef5d ci/lint: add integration tag
In the current PRs we have an issue with the linter failing on a dead code
in integration tests. The linter isn't failing on main_test.go file
because it somehow ignores the integration tag. However, it fails on
other files which main_test.go depends on and which have the integration
tag.

This commit tells golangci-lint to always use the integration tag while doing
the inspection.
2020-03-17 20:36:58 +01:00
Ondřej Budai
8dfe5ec25c ci/lint: disable govet/composites 2020-03-02 14:28:55 +01:00
Ondřej Budai
6fb44e140f ci/lint: show all errors
golangci-lint hides errors if there are a lot of them. I think it's more
convenient for the CI to show them all, so we can fix them all at once.
2020-03-02 14:28:55 +01:00