while analysis with sonar (version is 8.9) it shows Missing Ctor rule(Class should define a constructor) even if i had used @NoArgsConstructor it shows Class should define a constructor.checked this with AllArgsConstructor too.The same error shows for entity class annotated with @Entity.
I have tried to add the following in sonar-project.properties sonar.java.libraries=project/build/resources/main/META-INF/resources/lombok.jar but not working.
seems that lombok annotations AllArgsConstructor,NoArgsConstructor etc not supported in sonar
I have tried up gradation but it failed.because am using java 13 version.In order to use the latest version need java 17.Currently java up gradation is not possible.That’s why sticking on this.In detail analysis of class files,found that constructor generated for some classes but still showing the same rule.seems that sonar is not taking that generated code by lombok
it will helps only to improve the coverage of @NoArgsConstructor,@Getter etc
I found that .class file having the generated constructor but sonar is not analysing this properly.That sonar rule is from checkstyle:com.puppycrawl.tools.checkstyle.checks.coding.MissingCtorCheck
I can’t suppress this rule.expecting other solutions for this