community-rust
community-rust copied to clipboard
SonarQube plugin to analyze Rust files
Download latest release |
SonarQube plugin for Rust (Community)
The plugin enables analysis of Rust language within SonarQube, which is an open platform to manage code quality. It is compatible with SonarQube 7.9 and above.
It leverages Clippy lints to raise issues against coding rules, LCOV or Cobertura for code coverage.
How ?
tl;dr
- Generate a Clippy report
cargo clippy --message-format=json &> <CLIPPY REPORT FILE>
- Import it into SonarQube
set analysis parameter community.rust.clippy.reportPaths=<CLIPPY REPORT FILE>
- Optionally import tests measures (
junit
report)
use community.rust.test.reportPath
- Optionally import coverage measures
use either
community.rust.lcov.reportPaths
or
community.rust.cobertura.reportPaths
For more details, you may want to read :
- The documentation
- The FAQ page
This plugin is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 3 of the License, or (at your option) any later version.
Your contribution and/or user feedback is welcomed
Contact : [email protected]