diff --git a/.circleci/config.yml b/.circleci/config.yml index b5903350f..ccdd5aaee 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -72,3 +72,11 @@ workflows: - run: name: Checkstyle command: ./gradlew checkstyle + - run: + name: Diff-Checkstyle + command: | + git fetch origin develop + branchBaseCommit=`git merge-base origin/develop HEAD` + echo "Comparing to $branchBaseCommit" + curl -s -L https://github.com/yangziwen/diff-checkstyle/releases/download/0.0.4/diff-checkstyle.jar > diff-checkstyle.jar + java -Dconfig_loc=config/checkstyle -jar diff-checkstyle.jar -c config/checkstyle/checkstyle-new-code.xml --git-dir . --base-rev $branchBaseCommit diff --git a/config/checkstyle/checkstyle-best-practice.xml b/config/checkstyle/checkstyle-new-code.xml similarity index 93% rename from config/checkstyle/checkstyle-best-practice.xml rename to config/checkstyle/checkstyle-new-code.xml index 154d2a896..0076bac23 100644 --- a/config/checkstyle/checkstyle-best-practice.xml +++ b/config/checkstyle/checkstyle-new-code.xml @@ -2,14 +2,9 @@ - - + @@ -219,15 +214,6 @@ - - - - - - - - -