Skip to content

Conversation

@Anmol202005
Copy link
Collaborator

Part of #41

follow up of: #57

Added recipe InputConfiigRemover to remove inline configuration comments.

Copy link
Member

@rdiachenko rdiachenko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we should remove config header. The idea was to remove // violation comments from those lines where violation was fixed. When you open InputXXX and OutputXXX side by side, the diff should only contain fixed violations and removed // violation comment, meaning it was fixed. If we remove config header, it will be harder to do such comparisons

@Anmol202005
Copy link
Collaborator Author

Done.
Add RemoveViolationComments recipe, will remove all single line comments that match the pattern //violation *

Copy link
Member

@rdiachenko rdiachenko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

if we need to support more complex comments or parameterise the recipe with a different comment, we'll do it when we have a real case for this

@rdiachenko rdiachenko merged commit 9812d1c into checkstyle:main Jul 22, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants