We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
CR and LF are invisible in Spotless output.
For instance:
src/core/src/main/java/org/apache/jmeter/SplashScreen.java @@ -52,7 +52,7 @@ setLocationRelativeTo(null);\n }\n \n - private int x=2;\r\n + private int x=2;\n \n /**\n * Show screen\n
So far so good. Spotless shows that \n should not be there (which is true because I'm on macOS, and lines should end with LF).
\n
However, if I add one more line with "trailing whitespace", then the output becomes
src/core/src/main/java/org/apache/jmeter/SplashScreen.java @@ -53,7 +53,7 @@ ····} ·····private·int·x=2; -·····private·int·y=3;·· +·····private·int·y=3; ····/** ·····*·Show·screen
Note: x=2 still has the wrong line ending, however, spotless does not print a warning on that.
x=2
spotlessApply corrects both issues (newline and the trailing whitespace).
spotlessApply
Have you considered to use unicode characters like SYMBOL FOR CARRIAGE RETURN, ␍ SYMBOL FOR LINE FEED, ␊ ?
Then the output could be like
src/core/src/main/java/org/apache/jmeter/SplashScreen.java @@ -53,7 +53,7 @@ ····} -·····private·int·x=2;␍␊ -·····private·int·y=3;··␊ -·····private·int·x=2;␊ +·····private·int·y=3;␊ ····/** ·····*·Show·screen
The text was updated successfully, but these errors were encountered:
Fixed in 08163be
Sorry, something went wrong.
No branches or pull requests
CR and LF are invisible in Spotless output.
For instance:
So far so good. Spotless shows that
\n
should not be there (which is true because I'm on macOS, and lines should end with LF).However, if I add one more line with "trailing whitespace", then the output becomes
Note:
x=2
still has the wrong line ending, however, spotless does not print a warning on that.spotlessApply
corrects both issues (newline and the trailing whitespace).Have you considered to use unicode characters like
SYMBOL FOR CARRIAGE RETURN, ␍
SYMBOL FOR LINE FEED, ␊
?
Then the output could be like
The text was updated successfully, but these errors were encountered: