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
Google Style Should Enforce Spaces after Commas #5624
Comments
@GuyPaddock , thanks a lot for detailed report. http://checkstyle.sourceforge.net/google_style.html#a4.6.2, looks like non of mentioned Checks cover this. @GuyPaddock , if you have time and you are affected by this and want to resolve it. I could guide you on development process(what and where to change in project to resolve this issue). Contributions are very appreciated. |
I'm on it! |
Fix is merged |
/var/tmp $ javac Test.java
:/var/tmp $ cat Test.java
:/var/tmp $ cat config.xml
:(We're using Google Style at this commit: https://github.com/checkstyle/checkstyle/blob/60f41e3c16e6c94b0bf8c2e5e4b4accf4ad394ab/src/main/resources/google_checks.xml).
/var/tmp $ java -Duser.language=en -Duser.country=US -jar checkstyle-8.8-all.jar -c config.xml Test.java
:According to section 4.6.2 of the official Google Style Guide, item 5 indicates that "a single ASCII space" should appear after commas, colons, semicolons, "or the closing parenthesis ()) of a cast".
It does not appear that CheckStyle is enforcing this requirement; therefore, there is no warning that all of the commas are missing spaces.
The text was updated successfully, but these errors were encountered: