gabrie-allaigre / sonar-gitlab-plugin

Add to each commit GitLab in a global commentary on the new anomalies added by this commit and add comment lines of modified files
GNU Lesser General Public License v3.0
713 stars 208 forks source link

In a Merge Request, inline comments are added at the correct new line but with code smell that was present at the line number before diff ? #287

Open whatthefrog opened 4 years ago

whatthefrog commented 4 years ago

using SonarQube Community EditionVersion 7.9.1 (build 27448)

using sonar-gitlab-plugin 4.1.0-SNAPSHOT

  L1: class Test {
  L2:
+ L3:  public String titi;
+ L4:
  L5:  public String toto;
  L6:
  L7:}

Wrong: Comment added to line 3, will be "Some existing code smell about toto", that used to be line 3 before the addition of titi

Expected: Comment added to line 3, will be "The new code smell about titi"