This isn’t exactly a bug, rather an implementation that could be improved upon. When Sonar is integrated with GitHub for Pull Request analysis, scanning every time there is a commit to an open pull request, it is very chatty. It will post the same comment to the pull request over and over. It would be nice if it would only post changes (or delete the previous post and continue always posting). For example, if I open a pull request with a violation, and make 10 commits that do not fix said violation or update the relevant code, I end up with 10 comments for the same violation. This makes it rather difficult to maintain collaborative conversation when Sonar is constantly inserting useless comments in the middle.
Alternatively, the summary comment could go away entirely since Sonar decorates the violating lines within the pull request. At the very least, the posting of this summary comment could be made configurable through a
- SonarQube Scanner : 126.96.36.1997
- Java : 1.8.0_151
- Linux : 4.15.0-1023-gcp
- Server Version : 188.8.131.5243
- SonarTSQL : 184.108.40.20667