In an attempt to speed up analysis (currently at 10 minutes), I wanted to float this idea and get some feedback on it:
During my build, instead of running Sonar all over the code base, just figure out the files that changed wrt the target branch, and then run Sonar on those files (complete files, not diffs of it).
What are the possible drawbacks of this strategy?
Some drawbacks that I have already thought of are:
Perhaps the users who’ve hacked this together can chime in here? Do you know their usernames on the community?
I’m currently analysing only our Java code base, which is at 400K LOC. Once we add our JS, that’ll probably increase the analysis time by 2x (similar LOC for JS).