From 08127a004f8bbd4d055b6b244bdad3b7c83cd45f Mon Sep 17 00:00:00 2001 From: Yan Zhang Date: Wed, 7 Aug 2019 10:05:40 +0800 Subject: [PATCH] Check style only on Travis CI (#287) * Check style only on Travis CI * Update pom.xml * Update pom.xml * update indent --- .travis.yml | 1 + check_style.xml | 4 ++-- pom.xml | 26 +++++++++++++++----------- 3 files changed, 18 insertions(+), 13 deletions(-) diff --git a/.travis.yml b/.travis.yml index 2c448eebf..f331372be 100644 --- a/.travis.yml +++ b/.travis.yml @@ -6,6 +6,7 @@ os: script: - ./mvnw clean verify + - ./mvnw checkstyle:check cache: directories: diff --git a/check_style.xml b/check_style.xml index 5b497d979..360e82d11 100644 --- a/check_style.xml +++ b/check_style.xml @@ -20,7 +20,7 @@ - + @@ -289,4 +289,4 @@ - \ No newline at end of file + diff --git a/pom.xml b/pom.xml index 184e34095..de6ecccc5 100644 --- a/pom.xml +++ b/pom.xml @@ -12,6 +12,7 @@ Java Debug Server for Visual Studio Code UTF-8 1.2.0 + ${basedir} @@ -113,15 +114,6 @@ org.apache.maven.plugins maven-checkstyle-plugin 2.17 - - - validate - validate - - check - - - com.puppycrawl.tools @@ -135,8 +127,7 @@ - ${project.parent.basedir}/check_style.xml - basedir=${project.parent.basedir} + ${checkstyleDir}/check_style.xml true @@ -148,6 +139,19 @@ + + + activate-in-module + + + ${basedir}/../check_style.xml + + + + ${basedir}/.. + + + photon