Skip to content

[Doc][Development] Add tips about how to use lombok #11074

@EricGao888

Description

@EricGao888

Search before asking

  • I had searched in the issues and found no similar feature requirement.

Description

  • Add some tips in docs about how to use lombok:
  1. Use lombok for setters, getters and toString methods in data objects to keep code neat.
  2. Avoid using @Data annotation because it will generate some code we may not need, cause the test coverage to decrease and make the Sonar Analysis fail for it.
  3. We'd better add a CI check to avoid @Data.

See: https://stackoverflow.com/questions/45569085/sonarqube-bad-coverage-because-of-lombok-data and https://projectlombok.org/features/Data

Documentation Links

No response

Are you willing to submit a PR?

  • Yes I am willing to submit a PR!

Code of Conduct

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions