From 0c1b1aa7494be70a599ea1a6285ea4b61f16851a Mon Sep 17 00:00:00 2001 From: Nick Maynard Date: Tue, 1 Nov 2016 09:34:28 +0000 Subject: [PATCH] Add Checkstyle to POM with Google settings advice (#4047) * Add Checkstyle to POM with Google settings advice * Add note re. changes for swagger-codegen * Use Checkstyle 6.19 - v7 removed JDK 7 runtime support * Add a link to the original config --- google_checkstyle.xml | 207 ++++++++++++++++++++++++++++++++++++++++++ pom.xml | 31 ++++++- 2 files changed, 236 insertions(+), 2 deletions(-) create mode 100644 google_checkstyle.xml diff --git a/google_checkstyle.xml b/google_checkstyle.xml new file mode 100644 index 00000000000..a954a98c116 --- /dev/null +++ b/google_checkstyle.xml @@ -0,0 +1,207 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/pom.xml b/pom.xml index aa94f36983e..bb277a2a6bf 100644 --- a/pom.xml +++ b/pom.xml @@ -1,5 +1,4 @@ - + org.sonatype.oss oss-parent @@ -68,6 +67,34 @@ target ${project.artifactId}-${project.version} + + org.apache.maven.plugins + maven-checkstyle-plugin + 2.17 + + + validate + validate + + google_checkstyle.xml + UTF-8 + true + true + false + + + check + + + + + + com.puppycrawl.tools + checkstyle + 6.19 + + + org.apache.maven.plugins maven-surefire-plugin