I’m not sure if you are reporting an improvement or seeking help.
I’ll assume that your project is currently not automatically analyzed by SonarCloud. You can configure the exclusions through the UI (only possible after a first scan) or in a
.sonarcloud.properties file. See the Additional analysis configuration section in this documentation page .
Could you tell me a bit more about the contents of the
templates/ directories? Is it a common pattern to have these directories that contain files that you don’t want scanned? Just to see if we can improve Automatic Analysis to handle these cases better.