fix: sonar

This commit is contained in:
nyyu 2024-12-15 15:18:25 +01:00
parent 8133d3fce2
commit 2e88801934
2 changed files with 4 additions and 3 deletions

View file

@ -13,12 +13,13 @@ steps:
test:
image: rust:alpine
pull: true
privileged: true
commands:
- apk add --no-cache musl-dev openssl-dev
# - cargo install cargo-tarpaulin
- wget -q -O- https://github.com/xd009642/tarpaulin/releases/latest/download/cargo-tarpaulin-x86_64-unknown-linux-musl.tar.gz | tar xzf - -C /usr/local/cargo/bin/
- rustup component add clippy
# - cargo tarpaulin --out Lcov
- cargo clippy --message-format=json &> clippy-report.json
- cargo tarpaulin --out Lcov
when:
# path:
# include: ['.woodpecker/*.yml', 'src/*', 'Cargo*']

View file

@ -1,5 +1,5 @@
sonar.projectKey=dev.nyyu:cggitem_sets
sonar.projectName=CGGItemSets
sonar.sources=src
sonar.rust.clippy.reportPaths=clippy-report.json
community.rust.clippy.reportPaths=clippy-report.json
community.rust.lcov.reportPaths=lcov.info