From 2e88801934456622fd2cfbc9f5770ab0e90e1141 Mon Sep 17 00:00:00 2001 From: nyyu Date: Sun, 15 Dec 2024 15:18:25 +0100 Subject: [PATCH] fix: sonar --- .woodpecker/.test.yml | 5 +++-- sonar-project.properties | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.woodpecker/.test.yml b/.woodpecker/.test.yml index e9ed21b..1396d9a 100644 --- a/.woodpecker/.test.yml +++ b/.woodpecker/.test.yml @@ -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*'] diff --git a/sonar-project.properties b/sonar-project.properties index 9d008de..016fa5c 100644 --- a/sonar-project.properties +++ b/sonar-project.properties @@ -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