Skip to content

add support for Lombok annoatations Showing 'Missing Ctor '  #13519

@ghost

Description

I have checked #2579
am facing similar problem like this.When am giving @NoArgsConstructor to a service class this shows the 'Missing Ctor ' rule .scrrenshot attached. found that lombok genereated the constructor for the class by decoding the class files. here is the sample code

@NoArgsConstructor
@Service
public class ReceiveMessageJsonHandler

{
	private static final String SAND = "sand";
 }
I have gradle(6.9) ,open jdk 13  ,springboot(2.7.0) project with following dependecy

compileOnly 'org.projectlombok:lombok:1.18.22'
annotationProcessor 'org.projectlombok:lombok:1.18.22'
testCompileOnly 'org.projectlombok:lombok:1.18.22'
testAnnotationProcessor 'org.projectlombok:lombok:1.18.22'

**am not intereseted to skip this rule because there is no violation of the rule actually the constructor is generated the issue due to the avoiding of @generated code in the class file.
Screenshot from 2023-08-07 11-23-46
**


it's better to support lombok generated codes

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions