WIP: ci: Create clippy codequality report

Close #508
This commit is contained in:
Jordan Petridis 2024-03-27 13:06:14 +02:00
parent 04c840a1d9
commit c7828dc80b
No known key found for this signature in database
4 changed files with 8 additions and 1 deletions

View file

@ -348,6 +348,10 @@ clippy:
artifacts: false
script:
- ./ci/run-clippy.sh
artifacts:
reports:
codequality: gl-code-quality-report.json
expire_in: 1 week
deny:
extends: .img-stable

View file

@ -1,4 +1,4 @@
variables:
GST_RS_IMG_TAG: "2024-03-21.0"
GST_RS_IMG_TAG: "2024-03-27.0"
GST_RS_STABLE: "1.77.0"
GST_RS_MSRV: "1.70.0"

View file

@ -29,6 +29,7 @@ if [ "$RUST_IMAGE_FULL" = "1" ]; then
cargo install --locked --force cargo-deny
cargo install --locked --force cargo-outdated
cargo install --locked --force typos-cli
cargo install --locked --force gitlab_clippy
# Coverage tools
rustup component add llvm-tools-preview

View file

@ -39,3 +39,5 @@ EXAMPLES_FEATURES="--features=rtsp-server,rtsp-server-record,pango-cairo,overlay
# And also run over all the examples/tutorials
cargo clippy --locked --color=always --manifest-path examples/Cargo.toml --all-targets "$EXAMPLES_FEATURES" -- $CLIPPY_LINTS
cargo clippy --locked --color=always --manifest-path tutorials/Cargo.toml --all-targets --all-features -- $CLIPPY_LINTS
cargo clippy --locked --message-format=json | gitlab-clippy > gl-code-quality-report.json