-
Notifications
You must be signed in to change notification settings - Fork 53
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
Create a checkstyle config for java #12
Comments
Thanks.
|
No! We're dealing with serial after all (STX/ETX) |
| | Avoid escaped unicode chars. I'm only talking about constant Strings in the java source code. There is no difference between writing String unitAbbrev = "μs"; | Best: perfectly clear even without a comment.
String unitAbbrev = "\u03bcs"; // "μs" The data which would go over the wire would be the same in either case. Can you please elaborate why you would prefer the latter version? I'd only use unicode literals for invisible characters. I agree on everything said in #12 (comment). Just don't overuse ternary in Java code. However, this issue is just for the java code. |
Agreed. STX/ETX are both examples of invisible characters. |
Now in the other issue we talked about the
To cite from Google:
I like this idea, because there can not be any discussions. The use the same enforcements in |
Create a checkstyle.xml which looks a lot like @scream3r's style.
expression ? true : false
).Most of these rules are standard Java rules.
The text was updated successfully, but these errors were encountered: