Skip to content

Instantly share code, notes, and snippets.

View HuGanghui's full-sized avatar
🏠
Working from home

iamhlbx HuGanghui

🏠
Working from home
View GitHub Profile
@HuGanghui
HuGanghui / GSoC-2020-Report.md
Last active August 30, 2020 16:42
GSoC 2020 Suppression Patch Filter Report

GSoC 2020 Suppression Patch Filter Report

Project idea:


https://github.com/checkstyle/checkstyle/wiki/Checkstyle-GSoC-2020-Project-Ideas#project-name-patch-suppression

Description: Introducing Checkstyle to a project can be a challenging and NOT an easy job, especially when a project has massive amount of code, very active in development, and there are no resources to start a new process of code cleanup. Checkstyle needs a new approach for filtering violations, which should be based on the diff details of the last commit. With this, users will only need to fix violations only in newly created or changed code. It could be configurable to skip changed lines and and only show violations in purely new code.

Merged commits:

@HuGanghui
HuGanghui / projects-to-test-on.properties
Created August 23, 2020 15:55
projects-to-test-on.properties
# 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||
@HuGanghui
HuGanghui / TrailingComment.xml
Last active August 23, 2020 15:50
TrailingComment.xml
<?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"/>