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?
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.