Skip to content

Instantly share code, notes, and snippets.

Avatar
💬
Focusing

Vyom Yadav Vyom-Yadav

💬
Focusing
View GitHub Profile
View my_checks.xml
<?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"/>
View patch_config.xml
<?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"/>
View projects-to-test-on.properties
# 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
@Vyom-Yadav
Vyom-Yadav / log.txt
Last active December 18, 2021 12:34
View log.txt
$ groovy diff.groovy -r /home/vyom/IdeaProjects/checkstyle -b master -p refactorSummaryJavadoc -c my_check.xml -l projects-to-test-on.properties
[delete] Deleting directory /home/vyom/IdeaProjects/contribution/checkstyle-tester/reports
[delete] Deleting directory /home/vyom/IdeaProjects/contribution/checkstyle-tester/tmp_reports
Installing Checkstyle artifact (master) into local Maven repository ...
Running command: git checkout master
Already on 'master'
Your branch is up to date with 'origin/master'.
Running command: git log -1 --pretty=MSG:%s%nSHA-1:%H
MSG:dependency: bump equalsverifier from 3.8 to 3.8.1
SHA-1:c9134ce31c4776e4ab6764824bb234bf5495be0e
View log2.txt
groovy diff.groovy -r /home/vyom/IdeaProjects/checkstyle -b master -p refactorSummaryJavadoc -c my_check.xml -l projects-to-test-on.properties
[delete] Deleting directory /home/vyom/IdeaProjects/contribution/checkstyle-tester/reports
Installing Checkstyle artifact (master) into local Maven repository ...
Running command: git checkout master
Already on 'master'
Your branch is up to date with 'origin/master'.
Running command: git log -1 --pretty=MSG:%s%nSHA-1:%H
MSG:dependency: bump equalsverifier from 3.8 to 3.8.1
SHA-1:c9134ce31c4776e4ab6764824bb234bf5495be0e
Running command: mvn -e --batch-mode -Pno-validations clean install
View wh.css
/* GLOBAL STYLES
-------------------------------------------------- */
/* Padding below the footer and lighter body text */
body {
padding-top: 3rem;
padding-bottom: 3rem;
color: #5a5a5a;
}
@Vyom-Yadav
Vyom-Yadav / Statistics.java
Last active January 7, 2022 08:16
Number of lines
View Statistics.java
package anotherPackage;
import java.io.BufferedInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.nio.file.Files;
import java.nio.file.Path;
import java.nio.file.Paths;
@Vyom-Yadav
Vyom-Yadav / lines.txt
Created January 10, 2022 09:27
TotalNumOfLines
View lines.txt
InputPackageNamesLoaderNotXml.java: 3
InputArrayTypeStyleNestedGenerics.java: 12
InputArrayTypeStyleOff.java: 19
InputArrayTypeStyle.java: 19
InputNonEmptyAtclauseDescription.java: 27
InputJavadocStyleNeverEndingXmlComment.java: 18
InputJavadocStyle2.java: 70
InputJavadocStyle8.java: 66
InputJavadocStyle4.java: 71
InputJavadocStyleNoJavadoc.java: 37
@Vyom-Yadav
Vyom-Yadav / pitest.md
Last active September 19, 2022 15:11
Pitest documentation update
View pitest.md

Pitest

PIT is a state of the art mutation testing system, providing gold standard test coverage for Java and the jvm. It's fast, scalable and integrates with modern test and build tooling. Visit https://pitest.org/ for more information.

How to generate pit report:


mvn -e --no-transfer-progress -P"$PITEST_PROFILE" clean test-compile org.pitest:pitest-maven:mutationCoverage