Cake aliases for SonarScanner. To be used in conjunction with the sonar-scanner tool.
If you like or are using this project please give it a star. Thanks!
Ensure sonar-scanner is on your path
Suggestion: use chocolatey. https://chocolatey.org/packages/sonarqube-scanner.portable
#addin "nuget:?package=Cake.SonarScanner"
// Assuming a sonar-scanner.properties on the current directory
SonarScanner(new SonarScannerSettings {
Properties = new Dictionary<string, string> {
{"sonar.login", EnvironmentVariable("sonar_scanner_token")}
}
});
.net projects should use the MSBuild scanner for SonarQube. See https://github.com/AgileArchitect/Cake.Sonar
For questions and to discuss ideas & feature requests, use the GitHub discussions on the Cake GitHub repository, under the Extension Q&A category.
Click on the Releases tab on GitHub.
Copyright © 2017-2021 Cake Contributors - Provided under the MIT License.