From 83527af4d3cbed383ac41284cfc4732ff6e75a3a Mon Sep 17 00:00:00 2001 From: Paul Campbell Date: Fri, 22 Dec 2017 19:17:58 +0000 Subject: [PATCH] Initial commit with checkstyle tile --- .gitignore | 36 +++++++++++++++ LICENSE.txt | 0 example/LICENSE.txt | 20 ++++++++ example/pom.xml | 32 +++++++++++++ .../java/net/kemitix/tiles/example/Main.java | 40 ++++++++++++++++ .../kemitix/tiles/example/package-info.java | 22 +++++++++ pom.xml | 21 +++++++++ tiles/checkstyle/pom.xml | 28 +++++++++++ tiles/checkstyle/tile.xml | 46 +++++++++++++++++++ tiles/pom.xml | 17 +++++++ 10 files changed, 262 insertions(+) create mode 100644 .gitignore create mode 100644 LICENSE.txt create mode 100644 example/LICENSE.txt create mode 100644 example/pom.xml create mode 100644 example/src/main/java/net/kemitix/tiles/example/Main.java create mode 100644 example/src/main/java/net/kemitix/tiles/example/package-info.java create mode 100644 pom.xml create mode 100644 tiles/checkstyle/pom.xml create mode 100644 tiles/checkstyle/tile.xml create mode 100644 tiles/pom.xml diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e68e0db --- /dev/null +++ b/.gitignore @@ -0,0 +1,36 @@ +# Package Files # +*.jar +*.war +*.ear +*.zip + +# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml +hs_err_pid* + +# maven build outputs +target/ + +# netbeans legacy +nbproject/ +nbactions.xml + +# eclipse legacy +.project + +# intellij +.idea/ +*.iml + +# Spring +spring.log +logs/ +/application.properties +/bootstrap.properties + +# Composer-style +vendor + +# Git and temp files +*.orig +*.patch +*~ diff --git a/LICENSE.txt b/LICENSE.txt new file mode 100644 index 0000000..e69de29 diff --git a/example/LICENSE.txt b/example/LICENSE.txt new file mode 100644 index 0000000..0ac5ca6 --- /dev/null +++ b/example/LICENSE.txt @@ -0,0 +1,20 @@ +/** + * 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. + */ diff --git a/example/pom.xml b/example/pom.xml new file mode 100644 index 0000000..2c723d5 --- /dev/null +++ b/example/pom.xml @@ -0,0 +1,32 @@ + + + + net.kemitix.tiles + 0.1.0-SNAPSHOT + 4.0.0 + + example + + + 2.10 + + + + + + io.repaint.maven + tiles-maven-plugin + ${tiles-maven-plugin.version} + true + + + net.kemitix.tiles:quality-checkstyle-tile:${project.version} + + + + + + + diff --git a/example/src/main/java/net/kemitix/tiles/example/Main.java b/example/src/main/java/net/kemitix/tiles/example/Main.java new file mode 100644 index 0000000..a351d17 --- /dev/null +++ b/example/src/main/java/net/kemitix/tiles/example/Main.java @@ -0,0 +1,40 @@ +/** + * 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. + */ + +package net.kemitix.tiles.example; + +/** + * Main class. + * + * @author Paul Campbell (pcampbell@kemitix.net) + */ +@SuppressWarnings("hideutilityclassconstructor") +public class Main { + + /** + * Main method. + * + * @param args command line args + */ + public static void main(final String[] args) { + System.out.println("Hello, World!"); + } +} diff --git a/example/src/main/java/net/kemitix/tiles/example/package-info.java b/example/src/main/java/net/kemitix/tiles/example/package-info.java new file mode 100644 index 0000000..20bfa04 --- /dev/null +++ b/example/src/main/java/net/kemitix/tiles/example/package-info.java @@ -0,0 +1,22 @@ +/** + * 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. + */ + +package net.kemitix.tiles.example; diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..ef98da9 --- /dev/null +++ b/pom.xml @@ -0,0 +1,21 @@ + + + 4.0.0 + + net.kemitix.tiles + kemitix-quality-maven-tiles + 0.1.0-SNAPSHOT + + 2.10 + + + pom + + + tiles + example + + + diff --git a/tiles/checkstyle/pom.xml b/tiles/checkstyle/pom.xml new file mode 100644 index 0000000..e88b156 --- /dev/null +++ b/tiles/checkstyle/pom.xml @@ -0,0 +1,28 @@ + + + + net.kemitix.tiles + 0.1.0-SNAPSHOT + 4.0.0 + + quality-checkstyle-tile + tile + + + 2.10 + + + + + + io.repaint.maven + tiles-maven-plugin + ${tiles-maven-plugin.version} + true + + + + + diff --git a/tiles/checkstyle/tile.xml b/tiles/checkstyle/tile.xml new file mode 100644 index 0000000..70126f8 --- /dev/null +++ b/tiles/checkstyle/tile.xml @@ -0,0 +1,46 @@ + + + 2.17 + 8.0 + 1.24.1 + 3.3.0 + 5-complexity + + + + + org.apache.maven.plugins + maven-checkstyle-plugin + ${maven-checkstyle-plugin.version} + + + com.puppycrawl.tools + checkstyle + ${checkstyle.version} + + + com.github.sevntu-checkstyle + sevntu-checkstyle-maven-plugin + ${sevntu.version} + + + net.kemitix + kemitix-checkstyle-ruleset + ${ruleset.version} + + + + net/kemitix/checkstyle-${ruleset.level}.xml + + + + verify + + check + + + + + + + diff --git a/tiles/pom.xml b/tiles/pom.xml new file mode 100644 index 0000000..8c25770 --- /dev/null +++ b/tiles/pom.xml @@ -0,0 +1,17 @@ + + + + net.kemitix.tiles + 0.1.0-SNAPSHOT + 4.0.0 + + tiles-parent + pom + + + checkstyle + + +