Skip to content

Instantly share code, notes, and snippets.

@romani
romani / project.properties
Last active October 14, 2024 23:59
trailing-comment-list-of-projects.properties
# List of GIT repositories to clone / pull for checking with Checkstyle
# File format: REPO_NAME|[local|git]|URL|[COMMIT_ID]|[EXCLUDE FOLDERS]
# Please note that bash comments works in this file
# Few projects that delivers set of unusual Java constructions that shall be correctly handled by AST visitor
# 'InputAllEscapedUnicodeCharacters' must be skipped because it is too big and slows down JXR
checkstyle-sonar|git|https://github.com/checkstyle/sonar-checkstyle|master||
Hartshorn|git|https://github.com/Dockbox-OSS/Hartshorn|develop/0.7.0||
camunda|git|https://github.com/camunda/camunda|main||
> Task :postgresql:checkstyleMain 07:20
[ant:checkstyle] [ERROR] /home/semaphore/checkstyle/.ci-temp/pgjdbc/pgjdbc/src/main/java/org/postgresql/ssl/SingleCertValidatingFactory.java:29: Redundant <p> tag. [JavadocParagraph] 07:20
[ant:checkstyle] [ERROR] /home/semaphore/checkstyle/.ci-temp/pgjdbc/pgjdbc/src/main/java/org/postgresql/PGProperty.java:158: Redundant <p> tag. [JavadocParagraph] 07:20
[ant:checkstyle] [ERROR] /home/semaphore/checkstyle/.ci-temp/pgjdbc/pgjdbc/src/main/java/org/postgresql/PGProperty.java:264: Redundant <p> tag. [JavadocParagraph] 07:20
[ant:checkstyle] [ERROR] /home/semaphore/checkstyle/.ci-temp/pgjdbc/pgjdbc/src/main/java/org/postgresql/PGProperty.java:321: Redundant <p> tag. [JavadocParagraph] 07:20
[ant:checkstyle] [ERROR] /home/semaphore/checkstyle/.ci-temp/pgjdbc/pgjdbc/src/main/java/org/postgresql/PGProperty.java:431: Redundant <p> tag. [JavadocParagraph] 07:20
[ant:checkstyle] [ERROR] /home/semaphore/checkstyle/.ci-temp/pgjdbc/pgjdbc/src/main/java/org/postgresql/PGProperty.java
# Example1 Configs
Bellow are two options that will do the same but use different versions
of github actions in checkstyle repository.
### Option 1
Trigger report generation by comment in Pull Request:
```
Github, generate report for AbbreviationAsWordInName/Example1
# japan language
WxJava|git|https://github.com/Wechat-Group/WxJava.git|develop|
<?xml version="1.0"?>
<!DOCTYPE module PUBLIC
"-//Checkstyle//DTD Checkstyle Configuration 1.3//EN"
"https://checkstyle.org/dtds/configuration_1_3.dtd">
<module name = "Checker">
<property name="charset" value="UTF-8"/>
<!-- do not change severity to 'error', as that will hide errors caused by exceptions -->
<property name="severity" value="warning"/>
@romani
romani / Configpart.xml
Created March 21, 2024 16:00
Discord discussion
</module>
<!-- https://github.com/checkstyle/checkstyle/blob/master/src/xdocs-examples/resources/com/puppycrawl/tools/checkstyle/checks/annotation/annotationlocation/Example3.java -->
<module id="config3" name="AnnotationLocation">
<property name="allowSamelineMultipleAnnotations" value="false"/>
<property name="allowSamelineSingleParameterlessAnnotation"
value="false"/>
<property name="allowSamelineParameterizedAnnotation" value="true"/>
</module>
@romani
romani / Config-by-examples.xml
Created March 21, 2024 15:55
Discord discussion
<?xml version="1.0"?>
<!DOCTYPE module PUBLIC
"-//Checkstyle//DTD Checkstyle Configuration 1.3//EN"
"https://checkstyle.org/dtds/configuration_1_3.dtd">
<module name = "Checker">
<property name="charset" value="UTF-8"/>
<!-- do not change severity to 'error', as that will hide errors caused by exceptions -->
<property name="severity" value="warning"/>
<?xml version="1.0"?>
<!DOCTYPE module PUBLIC
"-//Checkstyle//DTD Checkstyle Configuration 1.3//EN"
"https://checkstyle.org/dtds/configuration_1_3.dtd">
<module name = "Checker">
<property name="charset" value="UTF-8"/>
<property name="tabWidth" value="4"/>
<!-- do not change severity to 'error', as that will hide errors caused by exceptions -->
@romani
romani / pull-9758-only-guava.properties
Created December 2, 2023 21:34
pull-9758-only-guava.properties
guava|git|https://github.com/google/guava|v28.2||
@romani
romani / pull-9758.properties
Created December 2, 2023 19:36
pull/9758 list of projects
# openjdk 17 requires lots of excludes, list here should be consistent with file filters at https://github.com/checkstyle/checkstyle/blob/master/.ci/openjdk17-excluded.files
openjdk17|git|https://github.com/openjdk/jdk17.git|master|**/test/langtools/jdk/javadoc/doclet/testSupplementary/C.java,**/test/hotspot/jtreg/runtime/exceptionMsgs/methodPrinting/TestPrintingMethods.java,**/test/langtools/tools/javac/MethodParameters/UncommonParamNames.java,**/test/langtools/tools/javac/unicode/UnicodeAtEOL.java,**/test/langtools/tools/javac/unicode/UnicodeCommentDelimiter.java,**/test/langtools/tools/javac/unicode/FirstChar2.java,**/test/langtools/tools/javac/unicode/SupplementaryJavaID1.java,**/test/langtools/tools/javac/unicode/SupplementaryJavaID5.java,**/test/langtools/tools/javac/unicode/TripleQuote.java,**/test/langtools/tools/javac/unicode/SupplementaryJavaID4.java,**/test/langtools/tools/javac/unicode/SupplementaryJavaID2.java,**/test/langtools/tools/javac/unicode/SupplementaryJavaID6.java,**/test/langtools/tools