Even if source files excluded from Sonar analysis, code smells are identified

We’ve Sonar server - Enterprise Edition Version 9.1 (build 47736). In order to exclude files from Code Coverage and Analysis, we’ve added pattern for them in ‘Source File Exclusions’ and ‘Coverage Exclusions’ of the project.(Same pattern used at both the places)

Now I cannot see Code Coverage calculated for them, but I still can see ‘Code Smells’ for them.

Does ‘Source File Exclusions’ not exclude them for Code Smells?

If not, how can we exclude files from identifying code smells?

Hi,

Can you provide your analysis log?

The analysis / scanner log is what’s output from the analysis command. Hopefully, the log you provide - redacted as necessary - will include that command as well.

This guide will help you find them.

 
Ann