-
Notifications
You must be signed in to change notification settings - Fork 27
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
Multiline detection in LineCheckBase is buggy #278
Comments
I just ran into this...
I don't know, that would make using multiline strings together with checkstyle a huge pain... And checkstyle uses them all over the place in its tests. |
I think there are two ways to fix the problem:
|
Doing a quick code review, the logic within the (curiously misspelled) function Additionally, If I get some time between projects, I will fork this project and try my hand at updating the multi-line string logic. Hopefully, this project is easy to build and test. |
Replace LineCheckBase line handling logic - Fixes #278
Multiline detection in LineCheckBase is prone to bugs. Including a quote in a comment will result in the rest of the file being ignored, which is clearly not correct.
Test that should pass, but fails: 543846f
Using regular expressions to detect and ignore some checks inside strings seems like a challenge not worth trying to fight.
The text was updated successfully, but these errors were encountered: