Skip to content

Commit 781094d

Browse files
mohitsatrromani
authored andcommitted
supplemental: add space between '//' and 'non-compiled' comments
1 parent c88d05a commit 781094d

File tree

280 files changed

+301
-309
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

280 files changed

+301
-309
lines changed

.ci/validation.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -523,7 +523,7 @@ javac11)
523523
--exclude='InputCustomImportOrderNoPackage2.java' \
524524
--exclude='InputIllegalTypePackageClassName.java' \
525525
--exclude='InputVisibilityModifierPackageClassName.java' \
526-
'//non-compiled (syntax|with javac)?\:' \
526+
'// non-compiled (syntax|with javac|with eclipse)?\:' \
527527
src/test/resources-noncompilable \
528528
src/xdocs-examples/resources-noncompilable))
529529
mkdir -p target

config/checkstyle-examples-checks.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@
7878
</module>
7979
<module name="RegexpSingleline">
8080
<property name="id" value="presenceOfCompilationComment"/>
81-
<property name="format" value="^//non-compiled with javac: Compilable with Java(\d+)"/>
81+
<property name="format" value="^// non-compiled with javac: Compilable with Java(\d+)"/>
8282
<property name="message"
8383
value="Missing compilation comment"/>
8484
<property name="minimum" value="1"/>

src/it/resources-noncompilable/com/google/checkstyle/test/chapter4formatting/rule43onestatement/InputOneStatementPerLine.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//non-compiled with eclipse: extra semicolumn in imports
1+
// non-compiled with eclipse: extra semicolumn in imports
22

33
package com.puppycrawl.tools.checkstyle.checks.coding.onestatementperline;
44

src/it/resources-noncompilable/com/google/checkstyle/test/chapter4formatting/rule462horizontalwhitespace/InputWhitespaceAroundWhen.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//non-compiled with javac: Compilable with Java21
1+
// non-compiled with javac: Compilable with Java21
22

33
package com.google.checkstyle.test.chapter4formatting.rule462horizontalwhitespace;
44

src/it/resources-noncompilable/com/google/checkstyle/test/chapter4formatting/rule4841indentation/InputCatchParametersOnNewLine.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//non-compiled with javac: compilable with java21
1+
// non-compiled with javac: compilable with java21
22

33
package com.google.checkstyle.test.chapter4formatting.rule4841indentation;
44

src/it/resources-noncompilable/com/google/checkstyle/test/chapter4formatting/rule4841indentation/InputMultilineStatementsCorrect.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//non-compiled with javac: compilable with java21
1+
// non-compiled with javac: compilable with java21
22

33
package com.google.checkstyle.test.chapter4formatting.rule4841indentation;
44

src/it/resources-noncompilable/org/checkstyle/checks/imports/importorder/InputFromAndroid.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//non-compiled with javac: contains specially crafted set of imports for testing
1+
// non-compiled with javac: contains specially crafted set of imports for testing
22
package org.checkstyle.checks.importorder;
33
/**
44
* This test-input is intended to be checked using following configuration:

src/it/resources-noncompilable/org/checkstyle/checks/imports/importorder/InputFromSpotify.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//non-compiled with javac: contains specially crafted set of imports for testing
1+
// non-compiled with javac: contains specially crafted set of imports for testing
22
package org.checkstyle.checks.importorder;
33
/**
44
* This test-input is intended to be checked using following configuration:

src/it/resources-noncompilable/org/checkstyle/checks/imports/importorder/InputFromTwitter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//non-compiled with javac: contains specially crafted set of imports for testing
1+
// non-compiled with javac: contains specially crafted set of imports for testing
22
package org.checkstyle.checks.importorder;
33
/**
44
* This test-input is intended to be checked using following configuration:

src/it/resources-noncompilable/org/checkstyle/suppressionxpathfilter/constructorsdeclarationgrouping/InputXpathConstructorsDeclarationGroupingRecords.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
//non-compiled with javac: Compilable with Java14
1+
// non-compiled with javac: Compilable with Java14
22

33
package org.checkstyle.suppressionxpathfilter.constructorsdeclarationgrouping;
44

0 commit comments

Comments
 (0)