Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Checkstyle OFF/ON block comments #214

Closed
nhojpatrick opened this issue Aug 16, 2019 · 3 comments
Closed

Checkstyle OFF/ON block comments #214

nhojpatrick opened this issue Aug 16, 2019 · 3 comments

Comments

@nhojpatrick
Copy link

I have a projects with 50 JPA objects, but they produce about ~40,000 Checkstyle warnings, with ~39,950 are within the AUTOGENERATED section. So 50 are in code I author.

Working on PR to add //CHECKSTYLE:OFF and //CHECKSTYLE:ON within the auto generated section. Associated PR will be raised shortly for early early review.

@jodastephen
Copy link
Member

Checkstyle has the ability to customize the on/off text it looks for. Can you use that customization?

@jodastephen
Copy link
Member

Here is the config that should do the job.

<module name="SuppressionCommentFilter">
  <property name="offCommentFormat" value="AUTOGENERATED START"/>
  <property name="onCommentFormat" value="AUTOGENERATED END"/>
</module>

@jodastephen
Copy link
Member

Closing on the assumption that the config worked.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants