From 1a2debe5c34192292c100b19e6c17f91d00e45f8 Mon Sep 17 00:00:00 2001 From: Andrew Woods Date: Thu, 25 Jul 2019 06:43:38 -0400 Subject: [PATCH] Create initial format style enforcement (#121) - All rules are initially suppressed Resolves: https://jira.duraspace.org/browse/VIVO-1692 --- checkstyle/pom.xml | 7 ++ .../checkstyle-suppressions.xml | 81 +++++++++++++++++++ pom.xml | 49 +++++++++++ 3 files changed, 137 insertions(+) create mode 100644 checkstyle/pom.xml create mode 100644 checkstyle/src/main/resources/vitro-checkstyle/checkstyle-suppressions.xml diff --git a/checkstyle/pom.xml b/checkstyle/pom.xml new file mode 100644 index 000000000..048745e3c --- /dev/null +++ b/checkstyle/pom.xml @@ -0,0 +1,7 @@ + + 4.0.0 + org.vivoweb + checkstyle + 1.11.0-SNAPSHOT + Vitro Checkstyle + diff --git a/checkstyle/src/main/resources/vitro-checkstyle/checkstyle-suppressions.xml b/checkstyle/src/main/resources/vitro-checkstyle/checkstyle-suppressions.xml new file mode 100644 index 000000000..ad64ea835 --- /dev/null +++ b/checkstyle/src/main/resources/vitro-checkstyle/checkstyle-suppressions.xml @@ -0,0 +1,81 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/pom.xml b/pom.xml index 2274ee995..8d35b7faf 100644 --- a/pom.xml +++ b/pom.xml @@ -64,6 +64,7 @@ + checkstyle api dependencies webapp @@ -267,6 +268,54 @@ ${stagingBase}/vitro/${project.version} + + + + org.apache.maven.plugins + maven-checkstyle-plugin + 3.0.0 + + + verify-style + + verify + + check + + + + + + duraspace-checkstyle/checkstyle.xml + + + vitro-checkstyle/checkstyle-suppressions.xml + + UTF-8 + true + true + true + true + + + + + com.puppycrawl.tools + checkstyle + 8.18 + + + org.duraspace + codestyle + 1.0.0 + + + org.vivoweb + checkstyle + 1.11.0-SNAPSHOT + + +