Skip to content

Instantly share code, notes, and snippets.

@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"/>
@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>
<?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"/>
# japan language
WxJava|git|https://github.com/Wechat-Group/WxJava.git|develop|
# 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
> 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
@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||
guava|git|https://github.com/google/guava|v28.2||
spotbugs|git|https://github.com/spotbugs/spotbugs|3.1.2||
pmd|git|https://github.com/pmd/pmd|pmd_releases/6.21.0|
spoon|git|https://github.com/INRIA/spoon.git|spoon-core-8.0.0|
lombok-ast|git|https://github.com/rzwitserloot/lombok.ast|v0.2|
spring-framework|git|https://github.com/spring-projects/spring-framework|v4.1.6.RELEASE||
hibernate-orm|git|https://github.com/hibernate/hibernate-orm|4.2.19.Final|
elasticsearch|git|https://github.com/elastic/elasticsearch|v1.5.2||
guava|git|https://github.com/google/guava|v33.3.1||
@romani
romani / guava-project.properties
Created November 6, 2024 13:19
pr-15879-base-config
guava|git|https://github.com/google/guava|v33.3.1||