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

qulicecheckstyle: Prohibit the strings which contains \n or \r\n #962

Open
dgroup opened this issue Dec 14, 2018 · 3 comments
Open

qulicecheckstyle: Prohibit the strings which contains \n or \r\n #962

dgroup opened this issue Dec 14, 2018 · 3 comments

Comments

@dgroup
Copy link
Contributor

dgroup commented Dec 14, 2018

The rule should restrict the strings which contain \n or \r\n.
These symbols are OS dependent line separators, therefore if we are using them in code - it might be OS dependent code base.

These strings should be rewritten considering System.lineSeparator or String.format("%n").

@0crat
Copy link
Collaborator

0crat commented Dec 14, 2018

@krzyk/z please, pay attention to this issue

@0crat
Copy link
Collaborator

0crat commented Dec 14, 2018

@dgroup/z this project will fix the problem faster if you donate a few dollars to it; just click here and pay via Stripe, it's very fast, convenient and appreciated; thanks a lot!

@PeJetuz
Copy link

PeJetuz commented Jul 9, 2024

@yegor256
We have a "Windows line endings are not allowed" rule.
If I understand correctly, this is done on purpose so that the project has the same line separator.
Do you want to accept any line separator or should it depend on configuration properties?

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

4 participants