Skip to content

Instantly share code, notes, and snippets.

@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
<?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"