Skip to content

Cake aliases for SonarScanner. To be used in conjunction with the sonar-scanner tool.

License

Notifications You must be signed in to change notification settings

cake-contrib/Cake.SonarScanner

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

66 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cake.SonarScanner

Cake aliases for SonarScanner. To be used in conjunction with the sonar-scanner tool.

Give a Star! ⭐

If you like or are using this project please give it a star. Thanks!

Pre requisites

Ensure sonar-scanner is on your path

Suggestion: use chocolatey. https://chocolatey.org/packages/sonarqube-scanner.portable

Usage

#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")}
    }
});

Important

.net projects should use the MSBuild scanner for SonarQube. See https://github.com/AgileArchitect/Cake.Sonar

Build status NuGet Coverage Status Quality Gate

Discussion

For questions and to discuss ideas & feature requests, use the GitHub discussions on the Cake GitHub repository, under the Extension Q&A category.

Join in the discussion on the Cake repository

Release History

Click on the Releases tab on GitHub.


Copyright © 2017-2021 Cake Contributors - Provided under the MIT License.