Skip to content

[GCI82] False positive with Lombok #107

@fredng06

Description

@fredng06

Describe the bug

When using lombok's annotations (@Setter, @DaTa) there is no need to explicitly implement setter methods for instance's attributes. However GCI82 rule detects an issue on each class attribute.

To Reproduce

  • Add Lombok dependency to the project
  • Create a simple POJO class
  • Add @Setter annotation on the class declaration
  • Analyse the code with SonarQube and creedengo-java plugin
@Getter
@Setter
@AllArgsConstructor
public class TestDto {
    private String name;
    private int age;
}

Expected behavior

The attributes declarations should be compliant and no issue should be raised.

Screenshots

Image

Software Versions

  • SonarQube Version: Community Build v25.3.0.104237
  • Plugin Version: 2.1.1

Metadata

Metadata

Assignees

Labels

💉 bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions