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

check for whitespace after a line continuation character #82

Open
sellersj opened this issue Oct 12, 2018 · 3 comments
Open

check for whitespace after a line continuation character #82

sellersj opened this issue Oct 12, 2018 · 3 comments
Milestone

Comments

@sellersj
Copy link

Feature request
If you have a continuation character, but it has trailing whitespace, it won't pick up the next line properly. This should be an error.

e.g.
my.key=This is a line but
this should be part of the value

If there is whitespace after the backslash, it won't pick up the second line.

I looked through the sonar-jproperties-custom-rules-plugin trying to figure out how to implement this, but I can't see where you could have the raw file to check for this.

Thanks for your time.

@racodond
Copy link
Owner

Hi @sellersj,

If my understanding is correct, you'd like a rule that raises an issue each time a backslash character is followed by trailing whitespace only, right?

David

@sellersj
Copy link
Author

sellersj commented Oct 25, 2018 via email

@racodond racodond added this to the 2.7 milestone Oct 27, 2018
@racodond
Copy link
Owner

OK

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

No branches or pull requests

2 participants