Samples of projects to use with SonarSource scanner.
This setup is necessary to run Sonar scanner on the different projets.
-
Sonar scanner runtime
-
For .NET applications
- .NET Core SDK
- dotnet format global tool:
dotnet tool install -g dotnet-format
- dotnet format global tool:
- SonarScanner for MSBuild
- dotnet sonarscanner global tool:
dotnet tool install --global dotnet-sonarscanner
- dotnet sonarscanner global tool:
- .NET Core SDK
-
For Javascript applications
- Node.js/NPM
- NPM module to run SonarQube/SonarCloud analyses:
npm install -g sonarqube-scanner
- NPM module to run SonarQube/SonarCloud analyses:
- Angular local setup:
npm install -g @angular/cli
- Node.js/NPM
Name | Language | Description |
---|---|---|
Simple Node.js app | Node.js | Simple web application (1 file) |
ASP.NET 4.5 MVC app | .NET Framework | ASP.NET 4.5 MVC application created from VS 2019 template |
ASP.NET Core Razor app | .NET Core | ASP.NET Core 3.0 Razor application created from VS 2019 template |
Simple AngularJS app | AngularJS | Simple web application (1 file) |
Simple Angular app | Angular | Simple web application |