racodond / sonar-jproperties-plugin

SonarQube Java Properties Analyzer

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

check for whitespace after a line continuation character

sellersj opened this issue · comments

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.

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