Skip to content

Instantly share code, notes, and snippets.

@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
<?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 / pull-13424-regression-config.xml
Created November 12, 2023 04:25
pull/13424 regression config
<?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="basedir" value="/work/checkstyle/checkstyle/.ci-temp/contribution/checkstyle-tester/"/>
<!-- do not change severity to 'error', as that will hide errors caused by exceptions -->
#!/bin/bash
# flatten portrait files from Gogole Camera application to one folder
for file in IMG_*/ ; do
if [[ -d "$file" && ! -L "$file" ]]; then
echo "Process $file directory";
cd $file
for filename in *.jpg; do
echo "$filename"
burst_datetime=$(echo "$filename" | cut -d '_' -f 3)
datetime=$(echo "$burst_datetime" | cut -c6-)
#!/bin/bash
# group images from gogole camera application to folders by date
for filename in *.jpg; do
echo "$filename"
date=$(echo "$filename" | cut -d '_' -f 2)
mkdir -p $date
mv $filename $date/$filename
done
for filename in *.mp4; do
echo "$filename"
<?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"/>
@romani
romani / gist:cbc85ed26b809064dc260a246666743a
Last active October 25, 2020 22:57
file for testing of pull/8913
# 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
apache-struts|git|https://github.com/apache/struts.git|master|**/apache-struts/**/resources/**/*
# 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|**/.ci-temp/**/*,**/resources-noncompilable/**/asttreestringprinter/**/*,**/resources-noncompilable/**/filefilters/**/*,**/resources-noncompilable/**/main/**/*,**/resources-noncompilable/**/suppressionsstringprinter/**/*,**/resources-noncompilable/**/gui/**/*,**/resources-noncompilable/**/javadocpropertiesgenerator/**/*,src/test/resources-noncompilable/com/puppycrawl/tools/checkstyle/javaparser/InputJavaParser.java,**/InputAllEscapedUnicodeCharacters.j
Description Resource Path Location Type
Unknown Unknown Java Exception Breakpoint
Unknown Unknown Java Exception Breakpoint
Syntax error on token ";", delete this token InputImportOrderStaticGroupSeparated.java /checkstyle/src/test/resources/com/puppycrawl/tools/checkstyle/checks/imports/importorder line 5 Java Problem
Syntax error on token ";", delete this token InputRegressionJava8Class1.java /checkstyle/src/test/resources/com/puppycrawl/tools/checkstyle/grammars line 3 Java Problem
The declared package "" does not match the expected package "com.puppycrawl.tools.checkstyle.asttreestringprinter" InputAstTreeStringPrinterAttributesAndMethodsJavadoc.java /checkstyle/src/test/resources/com/puppycrawl/tools/checkstyle/asttreestringprinter line 1 Java Problem
The declared package "" does not match the expected package "com.puppycrawl.tools.checkstyle.asttreestringprinter" InputAstTreeStringPrinterJavaAndJavadoc.java /checkstyle/src/test/resources/com/puppycrawl/tools/checkstyle/asttreestringpr
src/it/resources/com/google/checkstyle/test/chapter3filestructure/rule32packagestate/InputLineLength.java:5
src/it/resources/com/google/checkstyle/test/chapter3filestructure/rule32packagestate/InputLineLength.java:29
src/it/resources/com/google/checkstyle/test/chapter3filestructure/rule32packagestate/InputLineLength.java:46
src/it/resources/com/google/checkstyle/test/chapter3filestructure/rule32packagestate/InputLineLength.java:47
src/it/resources/com/google/checkstyle/test/chapter3filestructure/rule32packagestate/InputLineLength.java:48
src/it/resources/com/google/checkstyle/test/chapter3filestructure/rule32packagestate/InputLineLength.java:50
src/it/resources/com/google/checkstyle/test/chapter3filestructure/rule32packagestate/InputLineLength.java:57
src/it/resources/com/google/checkstyle/test/chapter3filestructure/rule332nolinewrap/InputLineLength.java:5
src/it/resources/com/google/checkstyle/test/chapter3filestructure/rule332nolinewrap/InputLineLength.java:29