From 16842d521514fa1bcd6d84ed1268160d35f5f61f Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Sun, 2 Apr 2017 13:32:00 +0100 Subject: [PATCH] regressions: enable regression testing --- plugin-sample/pom.xml | 139 +--------------- pom.xml | 2 + regressions/pom.xml | 29 ++++ .../kemitix/checkstyle/regressions/Basic.java | 34 ++++ .../checkstyle/regressions/package-info.java | 32 ++++ sample-parent/pom.xml | 150 ++++++++++++++++++ 6 files changed, 254 insertions(+), 132 deletions(-) create mode 100644 regressions/pom.xml create mode 100644 regressions/src/main/java/net/kemitix/checkstyle/regressions/Basic.java create mode 100644 regressions/src/main/java/net/kemitix/checkstyle/regressions/package-info.java create mode 100644 sample-parent/pom.xml diff --git a/plugin-sample/pom.xml b/plugin-sample/pom.xml index 29a0e17..c9d9c71 100644 --- a/plugin-sample/pom.xml +++ b/plugin-sample/pom.xml @@ -5,142 +5,17 @@ 4.0.0 - - net.kemitix + + net.kemitix + kemitix-checkstyle-ruleset-sample-parent + 2.3.0-SNAPSHOT + ../sample-parent + + kemitix-checkstyle-ruleset-plugin-sample 2.3.0-SNAPSHOT Kemitix Checkstyle Ruleset Plugin Sample Sample usage of the Kemitix Checkstyle Ruleset Plugin - https://github.com/kemitix/kemitix-checkstyle-ruleset - - - The MIT License (MIT) - https://opensource.org/licenses/MIT - - - - scm:git:git@github.com:kemitix/kemitix-checkstyle-ruleset.git - scm:git:git@github.com:kemitix/kemitix-checkstyle-ruleset.git - git@github.com:kemitix/kemitix-checkstyle-ruleset.git - - - - Paul Campbell - pcampbell@kemitix.net - Kemitix - https://github.com/kemitix/ - - - - UTF-8 - UTF-8 - 2.10.4 - 3.0.1 - 1.6 - 2.8.2 - - - - - - net.kemitix - kemitix-checkstyle-ruleset-maven-plugin - ${project.version} - - - validate - - 2-naming - - - - - - - - - release - - - - - org.apache.maven.plugins - maven-javadoc-plugin - ${maven-javadoc-plugin.version} - - - attach-javadocs - verify - - jar - - - - - - - org.apache.maven.plugins - maven-source-plugin - ${maven-source-plugin.version} - - - attach-sources - verify - - jar-no-fork - - - - - - - org.apache.maven.plugins - maven-gpg-plugin - ${maven-gpg-plugin.version} - - ${gpg.passphrase} - - - - sign-artifacts - verify - - sign - - - - - - - org.apache.maven.plugins - maven-deploy-plugin - ${maven-deploy-plugin.version} - - - - - - - - - sevntu-maven - sevntu-maven - http://sevntu-checkstyle.github.io/sevntu.checkstyle/maven2 - - - - - - sonatype-nexus-snapshots - Sonatype Nexus Snapshots - https://oss.sonatype.org/content/repositories/snapshots/ - - - sonatype-nexus-staging - Nexus Release Repository - https://oss.sonatype.org/service/local/staging/deploy/maven2/ - - diff --git a/pom.xml b/pom.xml index 63099a0..ba80630 100644 --- a/pom.xml +++ b/pom.xml @@ -30,6 +30,8 @@ ruleset plugin plugin-sample + regressions + sample-parent diff --git a/regressions/pom.xml b/regressions/pom.xml new file mode 100644 index 0000000..3c258b0 --- /dev/null +++ b/regressions/pom.xml @@ -0,0 +1,29 @@ + + + + kemitix-checkstyle-ruleset-sample-parent + net.kemitix + 2.3.0-SNAPSHOT + ../sample-parent + + 4.0.0 + + kemitix-checkstyle-ruleset-regressions + Regression Tests + + + 5-complexity + + + + + org.immutables + value + 2.4.4 + provided + + + + diff --git a/regressions/src/main/java/net/kemitix/checkstyle/regressions/Basic.java b/regressions/src/main/java/net/kemitix/checkstyle/regressions/Basic.java new file mode 100644 index 0000000..fee7b0d --- /dev/null +++ b/regressions/src/main/java/net/kemitix/checkstyle/regressions/Basic.java @@ -0,0 +1,34 @@ +/* +The MIT License (MIT) + +Copyright (c) 2016 Paul Campbell + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. +*/ + +package net.kemitix.checkstyle.regressions; + +/** + * Sample class. + * + * @author Paul Campbell (pcampbell@kemitix.net) + */ +class Basic { + +} diff --git a/regressions/src/main/java/net/kemitix/checkstyle/regressions/package-info.java b/regressions/src/main/java/net/kemitix/checkstyle/regressions/package-info.java new file mode 100644 index 0000000..fc07ea5 --- /dev/null +++ b/regressions/src/main/java/net/kemitix/checkstyle/regressions/package-info.java @@ -0,0 +1,32 @@ +/** + * The MIT License (MIT) + * + * Copyright (c) 2017 Paul Campbell + * + * Permission is hereby granted, free of charge, to any person obtaining a copy of this software + * and associated documentation files (the "Software"), to deal in the Software without restriction, + * including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, + * and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, + * subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included in all copies + * or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, + * INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE + * AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, + * DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + * + * . + * + * @author Paul Campbell (pcampbell@kemitix.net) + */ + +/** + * . + * + * @author Paul Campbell (pcampbell@kemitix.net) + */ + +package net.kemitix.checkstyle.regressions; diff --git a/sample-parent/pom.xml b/sample-parent/pom.xml new file mode 100644 index 0000000..ba7b589 --- /dev/null +++ b/sample-parent/pom.xml @@ -0,0 +1,150 @@ + + + 4.0.0 + + net.kemitix + kemitix-checkstyle-ruleset-sample-parent + pom + + 2.3.0-SNAPSHOT + + Kemitix Checkstyle Ruleset Sample Parent + Sample parent for modules that use kemitix-checkstyle-ruleset-maven-plugin + + + 2-naming + + UTF-8 + UTF-8 + 2.10.4 + 3.0.1 + 1.6 + 2.8.2 + + + https://github.com/kemitix/kemitix-checkstyle-ruleset + + + The MIT License (MIT) + https://opensource.org/licenses/MIT + + + + scm:git:git@github.com:kemitix/kemitix-checkstyle-ruleset.git + scm:git:git@github.com:kemitix/kemitix-checkstyle-ruleset.git + git@github.com:kemitix/kemitix-checkstyle-ruleset.git + + + + Paul Campbell + pcampbell@kemitix.net + Kemitix + https://github.com/kemitix/ + + + + + + + net.kemitix + kemitix-checkstyle-ruleset-maven-plugin + ${project.version} + + + validate + + ${kemitix-checkstyle-ruleset-level} + + + + + + + + + release + + + + + org.apache.maven.plugins + maven-javadoc-plugin + ${maven-javadoc-plugin.version} + + + attach-javadocs + verify + + jar + + + + + + + org.apache.maven.plugins + maven-source-plugin + ${maven-source-plugin.version} + + + attach-sources + verify + + jar-no-fork + + + + + + + org.apache.maven.plugins + maven-gpg-plugin + ${maven-gpg-plugin.version} + + ${gpg.passphrase} + + + + sign-artifacts + verify + + sign + + + + + + + org.apache.maven.plugins + maven-deploy-plugin + ${maven-deploy-plugin.version} + + + + + + + + + sevntu-maven + sevntu-maven + http://sevntu-checkstyle.github.io/sevntu.checkstyle/maven2 + + + + + + sonatype-nexus-snapshots + Sonatype Nexus Snapshots + https://oss.sonatype.org/content/repositories/snapshots/ + + + sonatype-nexus-staging + Nexus Release Repository + https://oss.sonatype.org/service/local/staging/deploy/maven2/ + + + +