CI: gate lint stage on clippy --all-targets -D warnings

Previously the lint job ran fmt --check and clippy separately without
the -D warnings flag, allowing clippy warnings to pass silently.
Now clippy runs with --all-targets (catches issues in tests and
benches) and -D warnings (treats all warnings as errors).
This commit is contained in:
teernisse
2026-02-12 16:14:01 -05:00
parent a10792be48
commit 59389d9272

View File

@@ -43,7 +43,7 @@ lint:
script: script:
- rustup component add rustfmt clippy - rustup component add rustfmt clippy
- cargo fmt --check - cargo fmt --check
- cargo clippy -- -D warnings - cargo clippy --all-targets -- -D warnings
rules: rules:
- if: $CI_PIPELINE_SOURCE == "merge_request_event" - if: $CI_PIPELINE_SOURCE == "merge_request_event"
- if: $CI_COMMIT_BRANCH - if: $CI_COMMIT_BRANCH