Commit graph

10 commits

Author SHA1 Message Date
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
Lukas Zapletal
2aaaaf05b3 ci: do not perform linting on vendor/ 2025-01-07 11:57:51 +01:00
Tomáš Hozza
7bdd036395 Update osbuild/images to v0.88.0
Adjust all paces that call `Solver.Depsolve()`, to cope with the changes
that enabled SBOM support.

Fix loading of testing repositories in the CloudAPI unit tests.

Signed-off-by: Tomáš Hozza <thozza@redhat.com>
2024-09-20 17:02:09 +02:00
Florian Schüller
6093492c33 golangci: fix integration tests for images
images also calls this linter but with path-prefix
2024-06-19 09:12:53 +02:00
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