mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer-rs.git
synced 2024-11-29 13:01:05 +00:00
ci: Deduplicate clippy linter arguments
This commit is contained in:
parent
6ee12d49ee
commit
baa29777a4
1 changed files with 5 additions and 3 deletions
|
@ -339,6 +339,8 @@ check commits:
|
||||||
clippy:
|
clippy:
|
||||||
extends: .img-stable
|
extends: .img-stable
|
||||||
stage: 'extras'
|
stage: 'extras'
|
||||||
|
variables:
|
||||||
|
CLIPPY_LINTS: -A clippy::missing_safety_doc -A clippy::manual_range_contains -A clippy::upper_case_acronyms -D warnings
|
||||||
script:
|
script:
|
||||||
- cargo clippy --version
|
- cargo clippy --version
|
||||||
# Keep features in sync with above
|
# Keep features in sync with above
|
||||||
|
@ -357,13 +359,13 @@ clippy:
|
||||||
|
|
||||||
echo "Running clippy on $crate with $FEATURES"
|
echo "Running clippy on $crate with $FEATURES"
|
||||||
|
|
||||||
cargo clippy --locked --color=always --manifest-path $crate/Cargo.toml $FEATURES --all-targets -- -A clippy::missing_safety_doc -A clippy::manual_range_contains -A clippy::upper_case_acronyms -D warnings
|
cargo clippy --locked --color=always --manifest-path $crate/Cargo.toml $FEATURES --all-targets -- $CLIPPY_LINTS
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
# And also run over all the examples/tutorials
|
# And also run over all the examples/tutorials
|
||||||
- |
|
- |
|
||||||
cargo clippy --locked --color=always --manifest-path examples/Cargo.toml --all-targets --all-features -- -A clippy::missing_safety_doc -A clippy::manual_range_contains -A clippy::upper_case_acronyms -D warnings
|
cargo clippy --locked --color=always --manifest-path examples/Cargo.toml --all-targets --all-features -- $CLIPPY_LINTS
|
||||||
cargo clippy --locked --color=always --manifest-path tutorials/Cargo.toml --all-targets --all-features -- -A clippy::missing_safety_doc -A clippy::manual_range_contains -A clippy::upper_case_acronyms -D warnings
|
cargo clippy --locked --color=always --manifest-path tutorials/Cargo.toml --all-targets --all-features -- $CLIPPY_LINTS
|
||||||
|
|
||||||
deny:
|
deny:
|
||||||
extends: .img-stable
|
extends: .img-stable
|
||||||
|
|
Loading…
Reference in a new issue