- ALM used - Azure DevOps
- CI system used - Azure DevOps
- Languages of the repository - Angular + .NET
We are trying to scan our Angular + .NET app repository with SonarCloud (running it with Azure DevOps pipeline). It successfully picks up all files and applies all inclusions/exclusions, however it completely ignores AngularApp folder that contains all Angular related files. Logs do not show anything related to skipping/excluding this folder, the only line it is displayed on at all is the duplciation of include/exclude rules.
This is our folder structure in Repo:
This is what SonarCloud displayes as scanned code:
As you can see, AngularApp folder is not included. These are inclusion/exclusion rules that we are using:
sonar.inclusions=MainFolder/**/*, MainFolder/AngularApp/**/*
sonar.exclusions=**/*.aspx, **/*.xml, **/*.aspx.cs, MainFolder/ckeditor/**, MainFolder/Hubs/**, MainFolder/Jdash/**, MainFolder/JsonCompression/**, MainFolder/MasterPages/**, MainFolder/Properties/**, MainFolder/Scripts/**, MainFolder/SqlServerTypes/**, MainFolder/Template/**, MainFolder/UserControls/**, MainFolder/ClientBin/**, MainFolder/CSS/**, MainFolder/DatabaseChanges/**, MainFolder/Images/**, MainFolder/Admin/ckeditor/**, MainFolder/Admin/Configurator/**, MainFolder/Admin/HtmlHelper/**, MainFolder/Admin/Scripts/**, MainFolder/Admin/UserControls/**, MainFolder/Admin/Views/**
As you can see, nothing related to AngularApp folder is excluded. We explicitly added AngularApp to inclusions for testing, to no avail (the result is the same with or without this rule).
Is there some option/variable that needs to be provided that we are missing? MainFolder/Admin/Scripts folder contains JavaScript files, and they were successfully picked up by scanner before we excluded it, so it’s probably not related to that.