Skip to content

SonarSource/sonar-scanning-examples

Repository files navigation

Sonar Scanning Examples

This repository showcases basic examples of usage and code coverage for SonarScanners.

Sonar's Clean Code solution helps developers deliver high-quality, efficient code standards that benefit the entire team or organization.

Examples

Various Languages

Ant

SonarScanner for Ant is now deprecated. Please migrate to the SonarScanner CLI.

Gradle

If you have a Gradle project, we recommend usage of SonarScanner for Gradle or the equivalent SonarScanner for Gradle on your CI pipeline.

Maven

If you have a Maven project, we recommend the usage of SonarScanner for Maven or the equivalent SonarScanner for Maven on your CI pipeline.

DotNet/C#

If you have a .NET project, we recommend the usage of SonarScanner for .NET or the equivalent SonarScanner for .NET on your CI pipeline.

Swift

SonarScanner - Swift Code Coverage

C/C++/Objective-C

NOTE: All SonarScanner examples for C, C++ and Objective-C can be found here.

License

Copyright 2016-2023 SonarSource.

Licensed under the GNU Lesser General Public License, Version 3.0