-
-
Notifications
You must be signed in to change notification settings - Fork 3.8k
Closed
Description
split from #8122
From: https://google.github.io/styleguide/javaguide.html#s4.6.2-horizontal-whitespace
Between a double slash (//) which begins a comment and the comment's text. Multiple spaces are allowed.
/** somejavadoc. */
public class InputTry {
// EXPECTED VIOLATION BELOW
String gooG = "Google"; //google
/** somejavadoc. */
public static void main(String[] args) {
// EXPECTED VIOLATION BELOW
int pro1 = 0; //the main variable
}
}
$ java -jar checkstyle-10.25.0-all.jar -c google_checks.xml InputTry.java
Starting audit...
Audit done.
$ java -jar google-java-format-1.27.0-all-deps.jar InputTry.java
/** somejavadoc. */
public class InputTry {
String gooG = "Google"; // google
/** somejavadoc. */
public static void main(String[] args) {
int pro1 = 0; // the main variable
}
}
Metadata
Metadata
Assignees
Type
Projects
Status
Done