How to exclude specific extension files from Sonar Analysis

Hi,

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.

Hi,

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

There’s a brief guide at the top of that page:
Selection_999(433)

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

**/*.cs
**/*.js
**/*.html

 
Ann

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.

Capture1

Hi,

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

 
Ann