Skip to content

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

@whatthefrog

Description

@whatthefrog

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"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions