code
|
echo "Formatting all Input files file at src/it/resources/com/google/checkstyle/test :" |
|
INPUT_PATHS=($(find src/it/resources/com/google/checkstyle/test/ -name "Input*.java" \ |
|
| sed "s|src/it/resources/com/google/checkstyle/test/||" \ |
|
| grep -v "rule231filetab/InputWhitespaceCharacters.java" \ |
|
| grep -v "rule3sourcefile/InputSourceFileStructure.java" \ |
|
| grep -v "rule332nolinewrap/InputNoLineWrapping.java" \ |
this script should be updated to validate that all Input that are excluded have file InputFormatted
for example rule231filetab/InputWhitespaceCharacters.java should have
rule231filetab/InputFormattedWhitespaceCharacters.java
and it should be almost same in size, with allowance to be different in size for ~20 bytes (results of formatting).
Violation comment might be required to be removed by sed, to avoid bigger diff in size.
Example:
https://www.diffchecker.com/2Y146tNY/



code
checkstyle/.ci/google-java-format.sh
Lines 22 to 27 in 512dfb4
this script should be updated to validate that all Input that are excluded have file InputFormatted
for example
rule231filetab/InputWhitespaceCharacters.javashould haverule231filetab/InputFormattedWhitespaceCharacters.javaand it should be almost same in size, with allowance to be different in size for ~20 bytes (results of formatting).
Violation comment might be required to be removed by
sed, to avoid bigger diff in size.Example:
https://www.diffchecker.com/2Y146tNY/