-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Delombok should not add trailing whitespace on newlines #638
Comments
👤 cbeams 🕗 Nov 08, 2013 at 10:18 UTC What steps will reproduce the problem?
What is the expected output? What do you see instead? No trailing whitespace. What version of the product are you using? On what operating system? 1.12.2 |
👤 r.spilker 🕗 Nov 08, 2013 at 13:00 UTC This is a matter of style and personal preference. I consider tabs on a line not as "trailing whitespace", but as "nice context level markers" since they align the newline characters with the same indentation level as the code around it. I don't know how hard it would be to fix, nor if making this configurable and added code complexity is worth the benefit. |
👤 r.spilker 🕗 Nov 20, 2013 at 00:43 UTC We've implemented something on a branch (pretty-delombok). For now it exposes some command line parameters, but also heuristics on the source file to just "do the right thing". |
👤 Maaartinus 🕗 Dec 08, 2013 at 05:21 UTC Note that git considers trailing whitespace to be an error by default. I personally couldn't agree more. Using any invisible garbage is for me next to using variable names like But seriously, I might like the idea of indenting the empty line if it was visible in Eclipse (I'd bet Emacs could do it easily). But in general, what's invisible should be non-existent as well. However, the style autodetection idea is cool. If there's some trailing whitespace in the existing code, adding more of it can do no more harm. |
👤 r.spilker 🕗 Dec 11, 2013 at 20:32 UTC Marked as duplicate of the umbrella issue #643. |
👤 r.spilker 🕗 Dec 11, 2013 at 20:32 UTC Duplicate of issue #643 |
End of migration |
Bumps org.jetbrains.grammarkit from 2018.3 to 2019.2.
Migrated from Google Code (issue 603)
The text was updated successfully, but these errors were encountered: