How to exclude specific extension files from Sonar Analysis


I have dot net application in that few .css,.Js & .html file exist.

I want to exclude those files from the entire scan analysis without passing a specific directory.

Is there any way to exclude all .html files from code coverage exclusion.

Please find attached a screenshot. I have already mentioned the file extensions still it is showing in the analysis result.


The patterns in your screenshot only exclude files in your project root.

There’s a brief guide at the top of that page:

As you see, you need ** to match directories. So what you want is:



Hi Thanks for reply but I did same thing still it showing .js .css & .html files

I have restarted the server once I change the settings still is showing the files in analysis.



Did you re-run analysis after you changed the settings?