Uploaded image for project: 'SonarJava'
  1. SonarJava
  2. SONARJAVA-3798

FP in S1258 and S3749 when using Lombok "@Data" annotation

    Details

    • Type: False-Positive
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 6.15.1
    • Component/s: Rules
    • Labels:

      Description

      Lombok @Data
      bundles the features of @ToString, @EqualsAndHashCode, @Getter / @Setter and @RequiredArgsConstructor together

      Since we are filtering issues from S1258 and S3749 when @RequiredArgsConstructor is used, we should do the same when @Data is used.

      Note that S2160, S1210, S1068 and S1450 issues are filtered when @Getter / @Setter / @ToString / @EqualsAndHashCode are used, but already correctly support @Data.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                quentin.jaquier Quentin Jaquier
                Reporter:
                quentin.jaquier Quentin Jaquier
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Due:
                  Created:
                  Updated:
                  Resolved: