Reduce LOCs count with quality profile

HI,

How can I reduce the number of LOCs for each Git repository that is under sonar scanner?
I know sonar exclusion property is one option to reach this. What instead if I do consider it at quality profile level? Can I reduce count of analyzed code with quality profile restriction?

thanks,

fabio

Hi fabio,

The Quality Profile only governs what rules are run on the code, not which code is analyzed. Your best bet is to adjust the analysis scope either by narrowing sonar.sources or through exclusions.

 
HTH,
Ann

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.