Added SonarQube analysis to the Makefile
This commit is contained in:
@@ -26,6 +26,18 @@ fmt:
|
|||||||
analyze:
|
analyze:
|
||||||
@cargo geiger
|
@cargo geiger
|
||||||
|
|
||||||
|
## Analyze the project with SonarQube - `cargo install cargo-sonar`
|
||||||
|
# sonar-scanner must be installed and LastPass
|
||||||
|
sonar:
|
||||||
|
@cargo clippy --message-format json > /tmp/clippy-report.json &&\
|
||||||
|
cargo sonar --issues clippy --clippy-path /tmp/clippy-report.json --issues-path /tmp/sonar-issues.json &&\
|
||||||
|
sonar-scanner\
|
||||||
|
-Dsonar.projectKey=Managarr\
|
||||||
|
-Dsonar.sources=.\
|
||||||
|
-Dsonar.externalIssuesReportPaths=/tmp/sonar-issues.json\
|
||||||
|
-Dsonar.host.url="$$(lpass show --url $$(basename $$(pwd)))"\
|
||||||
|
-Dsonar.login="$$(lpass show --password $$(basename $$(pwd)))"
|
||||||
|
|
||||||
release:
|
release:
|
||||||
@git tag -a ${V} -m "Release ${V}" && git push origin ${V}
|
@git tag -a ${V} -m "Release ${V}" && git push origin ${V}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user