Skip to content

Instantly share code, notes, and snippets.

@josephmate
Last active August 23, 2020 14:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save josephmate/a39a39b4c60aa11929aee4574aa90220 to your computer and use it in GitHub Desktop.
Save josephmate/a39a39b4c60aa11929aee4574aa90220 to your computer and use it in GitHub Desktop.
files for generating a report for PR https://github.com/checkstyle/checkstyle/pull/7932
<?xml version="1.0"?>
<!DOCTYPE module PUBLIC
"-//Puppy Crawl//DTD Check Configuration 1.3//EN"
"http://www.puppycrawl.com/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"/>
<!-- haltOnException is required for exception fixes and reporting of all exceptions -->
<property name="haltOnException" value="false"/>
<!-- BeforeExecutionFileFilters is required for sources of java9 -->
<module name="BeforeExecutionExclusionFileFilter">
<property name="fileNamePattern" value="module\-info\.java$" />
</module>
<module name="TreeWalker">
<!-- suppress javadoc parsing errors, as we test Check not a parser -->
<module name="SuppressionXpathSingleFilter">
<property name="message" value="Javadoc comment at column \d+ has parse error"/>
</module>
</module>
<!-- Example of filter -->
<!--
<module name="SeverityMatchFilter">
<property name="severity" value="warning"/>
<property name="acceptOnMatch" value="false"/>
</module>
-->
<!-- as we run on regression even on non-compiled files we need to skip exceptions on them -->
<module name="SuppressionSingleFilter">
<property name="message" value="Exception occurred while parsing"/>
<property name="checks" value="Checker"/>
</module>
</module>
<?xml version="1.0"?>
<!DOCTYPE module PUBLIC
"-//Puppy Crawl//DTD Check Configuration 1.3//EN"
"http://www.puppycrawl.com/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"/>
<!-- haltOnException is required for exception fixes and reporting of all exceptions -->
<property name="haltOnException" value="false"/>
<!-- BeforeExecutionFileFilters is required for sources of java9 -->
<module name="BeforeExecutionExclusionFileFilter">
<property name="fileNamePattern" value="module\-info\.java$" />
</module>
<module name="TreeWalker">
<module name="RequireEmptyLineBeforeBlockTagGroup"/>
<!-- suppress javadoc parsing errors, as we test Check not a parser -->
<module name="SuppressionXpathSingleFilter">
<property name="message" value="Javadoc comment at column \d+ has parse error"/>
</module>
</module>
<!-- Example of filter -->
<!--
<module name="SeverityMatchFilter">
<property name="severity" value="warning"/>
<property name="acceptOnMatch" value="false"/>
</module>
-->
<!-- as we run on regression even on non-compiled files we need to skip exceptions on them -->
<module name="SuppressionSingleFilter">
<property name="message" value="Exception occurred while parsing"/>
<property name="checks" value="Checker"/>
</module>
</module>
# List of GIT repositories to clone / pull for checking with Checkstyle
# File format: REPO_NAME|[local|git|hg]|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|git|https://github.com/checkstyle/checkstyle.git|master|**/checkstyle/src/test/resources-noncompilable/**/*,**/InputAllEscapedUnicodeCharacters.java
sevntu-checkstyle|git|https://github.com/sevntu-checkstyle/sevntu.checkstyle|master||
checkstyle-sonar|git|https://github.com/checkstyle/sonar-checkstyle|master||
openjdk7|hg|http://hg.openjdk.java.net/jdk7/jdk7/jdk/|||
openjdk8|hg|http://hg.openjdk.java.net/jdk8/jdk8/jdk/|default|
#All details at checkstyle/checkstyle#3033: ModalDialogActivationTest till JDK-8166015 ; 'jxc/8073519/**' not compilable by design ; ', jhsdb/**' - checkstyle do not support unicode identifiers
openjdk9|hg|http://hg.openjdk.java.net/jdk9/jdk9/jdk/|default|**/test/java/awt/Focus/ModalDialogActivationTest/ModalDialogActivationTest.java,**/test/javax/xml/bind/jxc/8073519/**,**/test/sun/tools/jhsdb/**
openjdk10|hg|http://hg.openjdk.java.net/jdk10/jdk10/jdk/|default|**/test/javax/xml/bind/jxc/8073519/**,**/test/sun/tools/jhsdb/**
#openjdk11|git|https://github.com/openjdk/jdk11u|master||
#openjdk14|git|https://github.com/openjdk/jdk14|master||
# **/test/hotspot/jtreg/runtime/records/recordReflectionTest.java - till we support records
# **/test/langtools/jdk/javadoc/doclet/testRecordTypes/** - records
# **/test/jdk/java/lang/invoke/defineHiddenClass/** - records and other new features
# **/test/jdk/java/lang/reflect/records/
# **/test/jdk/java/**/records/**
# **/test/langtools/tools/javac/** - too much non compilable
# **/test/jdk/java/lang/instrument/*Record*/**
# **/test/jdk/java/awt/Window/MinimumSizeDPIVariation/** - new syntax - switch
# **/test/langtools/jdk/javadoc/tool/** - too much non compilable
# **/src/jdk.jshell/share/classes/jdk/jshell/SourceCodeAnalysisImpl.java - looks like a our bug
# **/src/java.base/share/classes/sun/security/ssl/SSLSocketImpl.java - our bug
# **/src/java.base/share/classes/java/lang/invoke/AddressVarHandleGenerator.java - switch
# **/src/java.desktop/share/classes/javax/sound/sampled/AudioFormat.java
# openjdk-latest is parsing, but fails to create report at launch.sh, due to OOM
# openjdk-latest|git|https://github.com/openjdk/jdk.git|master|**/test/lib/jdk/test/lib/hexdump/HexPrinter.java,**/test/lib-test/jdk/test/lib/hexdump/HexPrinterTest.java,**/test/lib-test/jdk/test/lib/apps/LingeredAppTest.java.**/test/hotspot/jtreg/runtime/exceptionMsgs/methodPrinting/TestPrintingMethods.java,**/test/lib-test/jdk/test/lib/apps/LingeredAppTest.java,**/test/hotspot/jtreg/runtime/exceptionMsgs/methodPrinting/TestPrintingMethods.java,**/test/hotspot/jtreg/runtime/records/**,**/test/langtools/tools/javac/**,**/test/langtools/jdk/javadoc/tool/**,**/test/langtools/jdk/javadoc/doclet/testRecordTypes/**,**/test/langtools/jdk/javadoc/doclet/**,**/test/jdk/sun/tools/jhsdb/**,**/test/jdk/java/lang/invoke/defineHiddenClass/**,**/test/jdk/java/lang/reflect/records/**,**/test/jdk/java/lang/instrument/*Record*/**,**/test/jdk/java/lang/String/TranslateEscapes.java,**/test/jdk/java/**/records/**,**/test/jdk/java/awt/Window/MinimumSizeDPIVariation/**,**/src/jdk.jshell/share/classes/jdk/jshell/SourceCodeAnalysisImpl.java,**/src/java.base/share/classes/sun/security/ssl/SSLSocketImpl.java,**/src/java.base/share/classes/java/lang/invoke/AddressVarHandleGenerator.java,**/src/java.desktop/share/classes/javax/sound/sampled/AudioFormat.java
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|**/pmd/pmd-java/src/test/**/*,**/pmd/cpd/files/*
spoon|git|https://github.com/INRIA/spoon.git|spoon-core-8.0.0|
lombok-ast|git|https://github.com/rzwitserloot/lombok.ast|v0.2|**/lombok-ast/test/**/*
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|**/hibernate-orm/documentation/**/*
elasticsearch|git|https://github.com/elastic/elasticsearch|v1.5.2||
java-design-patterns|git|https://github.com/iluwatar/java-design-patterns|dd855a376bc025aa61f6816584f79eb9854fe5d7||
MaterialDesignLibrary|git|https://github.com/navasmdc/MaterialDesignLibrary|1.3||
Hbase|git|https://github.com/apache/hbase|1.1.0.1||
Orekit|git|https://github.com/CS-SI/Orekit|8.0.1||
# Those projects are quite old and have lot of legacy code
apache-ant|git|https://github.com/apache/ant|ANT_194|**/apache-ant/src/tests/**/*,**/apache-ant/src/etc/testcases/
apache-jsecurity|git|https://github.com/apache/jsecurity|c2ac5b90a467aedb04b52ae50a99e83207d847b3||
android-launcher|git|https://github.com/android/platform_packages_apps_launcher|android-2.1_r2.1p2||
apache-struts|git|https://github.com/apache/struts.git|master|**/apache-struts/**/resources/**/*
# Projects which contain a lot of labmda expressions
infinispan|git|https://github.com/infinispan/infinispan|7.2.5.Final||
protonpack|git|https://github.com/poetix/protonpack|protonpack-1.7||
jOOL|git|https://github.com/jOOQ/jOOL|version-0.9.7||
RxJava|git|https://github.com/ReactiveX/RxJava|v1.0.9||
Vavr|git|https://github.com/vavr-io/vavr|v0.9.0||
# Few projects with excludes to decrease a number of checked files (usefull for some checks which specify overly strong code style policy)
checkstyle-with-excludes|git|https://github.com/checkstyle/checkstyle.git|master|**/checkstyle-with-excludes/src/test/**/*,**/checkstyle-with-excludes/src/it/resources/**/*,**/resources-noncompilable/**/*
sevntu-checkstyle-with-excludes|git|https://github.com/sevntu-checkstyle/sevntu.checkstyle|master|**/sevntu-checkstyle-with-excludes/sevntu-checks/src/test/**/*
spotbugs-with-excldues|git|https://github.com/spotbugs/spotbugs|3.1.2|**/spotbugs-with-excldues/eclipsePlugin-test/**/*,**/spotbugs-with-excldues/spotbugsTestCases/**/*,**/spotbugs-with-excldues/JSR305-testCases/**/*
hibernate-orm-with-excludes|git|https://github.com/hibernate/hibernate-orm|4.2.19.Final|**/hibernate-orm-with-excludes/documentation/**/*,**/hibernate-orm-with-excludes/**/src/test/**/*
# Guava with excldues to generate reports only for those files which are not excluded in Guava's pom.xml for checkstyle-maven-plugin
# See https://github.com/checkstyle/checkstyle/wiki/How-to-generate-Checkstyle-report-for-Google-Guava-project
guava-mvnstyle|git|https://github.com/google/guava|v28.2|**/guava-mvnstyle/**/test/**/*,**/guava-mvnstyle/guava-gwt/src-super/**/*,**/guava-mvnstyle/guava-gwt/test-super/**/*,**/guava-mvnstyle/guava-tests/**/*
# custom javadoc tags
nbia-dcm4che-tools|git|https://github.com/thprakash/nbia-dcm4che-tools|c3591e6f0f84827586db25abded6708e5386ef1a||
# RequireThis usage
spring-integration|git|https://github.com/spring-projects/spring-integration.git|master|
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment