fix: sonar
This commit is contained in:
parent
8133d3fce2
commit
2e88801934
2 changed files with 4 additions and 3 deletions
|
@ -13,12 +13,13 @@ steps:
|
||||||
test:
|
test:
|
||||||
image: rust:alpine
|
image: rust:alpine
|
||||||
pull: true
|
pull: true
|
||||||
|
privileged: true
|
||||||
commands:
|
commands:
|
||||||
- apk add --no-cache musl-dev openssl-dev
|
- 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
|
- rustup component add clippy
|
||||||
# - cargo tarpaulin --out Lcov
|
|
||||||
- cargo clippy --message-format=json &> clippy-report.json
|
- cargo clippy --message-format=json &> clippy-report.json
|
||||||
|
- cargo tarpaulin --out Lcov
|
||||||
when:
|
when:
|
||||||
# path:
|
# path:
|
||||||
# include: ['.woodpecker/*.yml', 'src/*', 'Cargo*']
|
# include: ['.woodpecker/*.yml', 'src/*', 'Cargo*']
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
sonar.projectKey=dev.nyyu:cggitem_sets
|
sonar.projectKey=dev.nyyu:cggitem_sets
|
||||||
sonar.projectName=CGGItemSets
|
sonar.projectName=CGGItemSets
|
||||||
sonar.sources=src
|
sonar.sources=src
|
||||||
sonar.rust.clippy.reportPaths=clippy-report.json
|
community.rust.clippy.reportPaths=clippy-report.json
|
||||||
community.rust.lcov.reportPaths=lcov.info
|
community.rust.lcov.reportPaths=lcov.info
|
||||||
|
|
Loading…
Add table
Reference in a new issue