Changeset 12:7425b1b2de5e

Switched to java-parent and removed checkstyle/spotbugs configs
author unexist
date Wed, 07 Apr 2021 13:35:25 +0200
parents 424dfcfae8cb
children b7e4945bc5b3
files checkstyle/config.xml checkstyle/file.header checkstyle/suppressions.xml
diffstat 3 files changed, 0 insertions(+), 404 deletions(-) [+]
line wrap: on
line diff
--- a/checkstyle/config.xml	Wed Apr 07 13:35:09 2021 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,384 +0,0 @@
-<?xml version="1.0"?>
-<!DOCTYPE module PUBLIC
-        "-//Puppy Crawl//DTD Check Configuration 1.2//EN"
-        "http://www.puppycrawl.com/dtds/configuration_1_2.dtd">
-
-<module name="Checker">
-
-    <metadata
-            name="com.vanderlande"
-            value="Checkstyle"/>
-
-    <property
-            name="severity"
-            value="error"/>
-
-    <module name="FileLength">
-        <property
-                name="max"
-                value="3000"/>
-    </module>
-    <module name="FileTabCharacter"/>
-
-    <!-- new code conventions from checkstyle -->
-    <module name="NewlineAtEndOfFile">
-        <property
-                name="lineSeparator"
-                value="lf"/>
-        <property
-                name="fileExtensions"
-                value="java"/>
-        <property
-                name="severity"
-                value="warning"/>
-    </module>
-
-    <module name="RegexpHeader">
-        <property name="headerFile"
-                  value="checkstyle/file.header"/>
-        <property name="fileExtensions"
-                  value="java"/>
-    </module>
-
-    <module name="LineLength">
-        <property
-                name="ignorePattern"
-                value="(^ *\*)|(^import)"/>
-        <property
-                name="max"
-                value="140"/>
-    </module>
-
-    <module name="RegexpSingleline">
-        <property
-                name="id"
-                value="syserr"/>
-        <property
-                name="format"
-                value="System\.(out|err)\."/>
-        <property
-                name="message"
-                value="Illegal use of System.err|out. - use a logger instead!"/>
-    </module>
-
-    <module name="RegexpSingleline">
-        <property
-                name="id"
-                value="stacktrace"/>
-        <property
-                name="format"
-                value="\.printStackTrace\(\)"/>
-        <property
-                name="message"
-                value="Illegal use of [exception].printStackTrace() - use a logger instead!"/>
-    </module>
-
-    <module name="RegexpSingleline">
-        <property
-                name="format"
-                value="^/?!*\s+$"/>
-        <property
-                name="message"
-                value="Line has trailing spaces."/>
-    </module>
-
-    <module name="RegexpMultiline">
-        <property
-                name="format"
-                value="\.(finest|finer|fine|config|info|warning|severe)\((&quot;[^&quot;]+&quot;\s*\+\s*.+|[^&quot;]*.+\+[^,]+&quot;[^,]+?&quot;.*?)\)"/>
-        <property
-                name="message"
-                value="You should use parameterized logger calls instead! See [logger].log(level, message, params)"/>
-    </module>
-
-    <module name="SeverityMatchFilter">
-        <property
-                name="severity"
-                value="info"/>
-        <property
-                name="acceptOnMatch"
-                value="false"/>
-    </module>
-
-    <!-- <module name="Translation"/> -->
-
-    <module name="TreeWalker">
-
-        <property
-                name="tabWidth"
-                value="4"/>
-
-        <module name="SuppressWithNearbyCommentFilter">
-            <property
-                    name="commentFormat"
-                    value="Checkstyle has to ignore the rule (\w+) for the next (\d+) lines"/>
-            <property
-                    name="checkFormat"
-                    value="$1"/>
-            <property
-                    name="influenceFormat"
-                    value="$2"/>
-        </module>
-
-        <module name="Regexp">
-            <!-- . matches any character, so we need to
-              escape it and use \. to match dots. -->
-            <property
-                    name="id"
-                    value="sysout"/>
-            <property
-                    name="format"
-                    value="System\.out\."/>
-            <property
-                    name="message"
-                    value="Illegal use of System.out. - use a logger instead!"/>
-            <property
-                    name="illegalPattern"
-                    value="true"/>
-            <property
-                    name="ignoreComments"
-                    value="true"/>
-        </module>
-
-        <module name="ArrayTypeStyle"/>
-        <module name="AvoidNestedBlocks"/>
-        <module name="AvoidStarImport"/>
-
-        <module name="BooleanExpressionComplexity"/>
-
-        <module name="ConstantName">
-            <!-- This rule has been changed. Numbers shouldn't be allowed like this: ^[A-Z]+(_[A-Z]+)*$ -->
-            <property
-                    name="format"
-                    value="^[A-Z][0-9A-Z]*(_[0-9A-Z]+)*$"/>
-        </module>
-        <module name="CovariantEquals"/>
-        <module name="CyclomaticComplexity">
-            <property
-                    name="severity"
-                    value="ignore"/>
-        </module>
-
-
-        <module name="DeclarationOrder"/>
-        <module name="DefaultComesLast"/>
-
-
-        <module name="EmptyBlock">
-            <property
-                    name="option"
-                    value="text"/>
-            <property
-                    name="tokens"
-                    value="LITERAL_CATCH"/>
-        </module>
-        <module name="EmptyBlock">
-            <property
-                    name="tokens"
-                    value="LITERAL_DO,LITERAL_ELSE,LITERAL_FINALLY,LITERAL_IF,LITERAL_FOR,LITERAL_TRY,LITERAL_WHILE,INSTANCE_INIT,STATIC_INIT"/>
-        </module>
-        <module name="EmptyForInitializerPad"/>
-        <module name="EmptyForIteratorPad"/>
-        <module name="EmptyStatement"/>
-        <module name="EqualsHashCode"/>
-
-
-        <module name="FinalClass"/>
-
-        <module name="GenericWhitespace"/>
-
-
-        <module name="HiddenField">
-            <property
-                    name="ignoreConstructorParameter"
-                    value="true"/>
-            <property
-                    name="ignoreSetter"
-                    value="true"/>
-            <property
-                    name="ignoreAbstractMethods"
-                    value="true"/>
-        </module>
-
-
-        <module name="IllegalImport"/>
-        <module name="IllegalInstantiation">
-            <property
-                    name="classes"
-                    value="java.lang.Boolean,java.lang.Integer,java.lang.Long,java.lang.Short,java.lang.Double,java.lang.Float"/>
-        </module>
-        <module name="IllegalThrows"/>
-        <module name="ImportOrder">
-            <property
-                    name="groups"
-                    value="de,com,org,javax,java"/>
-            <property
-                    name="separated"
-                    value="true"/>
-            <property
-                    name="option"
-                    value="top"/>
-            <property
-                    name="severity"
-                    value="warning"/>
-        </module>
-        <module name="Indentation">
-            <property
-                    name="basicOffset"
-                    value="4"/>
-            <property
-                    name="throwsIndent"
-                    value="4"/>
-            <property
-                    name="lineWrappingIndentation"
-                    value="8"/>
-            <property
-                    name="forceStrictCondition"
-                    value="true"/>
-            <property
-                    name="severity"
-                    value="warning"/>
-        </module>
-        <module name="InnerAssignment"/>
-        <module name="InnerTypeLast"/>
-        <module name="InterfaceIsType"/>
-
-
-        <module name="LeftCurly"/>
-        <module name="LocalFinalVariableName">
-            <property
-                    name="format"
-                    value="^[a-z]+([A-Z][a-z]+)*$"/>
-        </module>
-        <module name="LocalVariableName">
-            <!-- This rule has been changed. Numbers shouldn't be allowed like this: ^[a-z]+([A-Z][a-z]+)*$ -->
-            <property
-                    name="format"
-                    value="^[a-z]+([A-Z][a-z]+)*[0-9]*$"/>
-        </module>
-
-
-        <module name="MagicNumber">
-            <property
-                    name="ignoreNumbers"
-                    value="-1, 0, 1, 2"/>
-        </module>
-        <module name="MemberName">
-            <!-- This rule has been changed. Numbers shouldn't be allowed like this: ^[a-z]+([A-Z][a-z]+)*$ -->
-            <property
-                    name="format"
-                    value="^[a-z]+([A-Z][a-z]+)*([x]?[0-9]+)*$"/>
-        </module>
-        <module name="MethodLength">
-            <property
-                    name="id"
-                    value="methodlength"/>
-            <property
-                    name="countEmpty"
-                    value="false"/>
-            <property
-                    name="max"
-                    value="40"/>
-        </module>
-        <module name="MethodName">
-            <property
-                    name="format"
-                    value="^[a-z]+([A-Z][a-z0-9]+)*$"/>
-        </module>
-        <module name="MethodParamPad"/>
-        <module name="MissingOverride"/>
-        <module name="MissingSwitchDefault"/>
-        <module name="ModifierOrder"/>
-        <!--<module name="MultipleStringLiterals"/> -->
-        <module name="MultipleVariableDeclarations"/>
-
-
-        <module name="NeedBraces"/>
-        <module name="NestedForDepth">
-            <property
-                    name="max"
-                    value="2"/>
-        </module>
-        <module name="NestedIfDepth">
-            <property
-                    name="max"
-                    value="5"/>
-        </module>
-        <module name="NestedTryDepth">
-            <property
-                    name="max"
-                    value="3"/>
-        </module>
-        <module name="NoWhitespaceAfter">
-            <property
-                    name="tokens"
-                    value="ARRAY_INIT, BNOT, DEC, DOT, INC, LNOT, UNARY_MINUS, UNARY_PLUS, TYPECAST"/>
-        </module>
-        <module name="NoWhitespaceBefore"/>
-
-
-        <module name="OperatorWrap"/>
-
-
-        <module name="PackageName">
-            <property
-                    name="format"
-                    value="^[a-z]+(\.[a-z]+)+$"/>
-        </module>
-        <module name="ParameterName">
-            <property
-                    name="format"
-                    value="^[a-z]+([A-Z][a-z]+)*[0-9]*$"/>
-        </module>
-        <module name="ParameterNumber"/>
-        <module name="ParenPad"/>
-
-
-        <module name="RedundantImport"/>
-        <module name="RedundantModifier"/>
-        <module name="RightCurly"/>
-
-        <module name="SimplifyBooleanExpression"/>
-        <module name="SimplifyBooleanReturn"/>
-        <module name="StaticVariableName">
-            <property
-                    name="format"
-                    value="^[a-z]+([A-Z][a-z]+)*$"/>
-        </module>
-        <module name="StringLiteralEquality"/>
-
-
-        <!-- <module name="TodoComment"/>
-          <module name="TypeName">
-          <property name="format" value="^([A-Z][a-z]+)+$"/>
-          </module> -->
-        <module name="TypecastParenPad"/>
-
-
-        <module name="UncommentedMain"/>
-        <module name="UnusedImports"/>
-        <module name="UpperEll"/>
-
-
-        <module name="VisibilityModifier">
-            <property
-                    name="packageAllowed"
-                    value="true"/>
-            <property
-                    name="protectedAllowed"
-                    value="true"/>
-        </module>
-
-
-        <module name="WhitespaceAfter">
-            <property
-                    name="tokens"
-                    value="COMMA, SEMI"/>
-        </module>
-        <module name="WhitespaceAround">
-            <property
-                    name="tokens"
-                    value="ASSIGN, BAND, BAND_ASSIGN, BOR, BOR_ASSIGN, BSR, BSR_ASSIGN, BXOR, BXOR_ASSIGN, COLON, DIV, DIV_ASSIGN, EQUAL, GE, GT, LAND, LCURLY, LE, LITERAL_ASSERT, LITERAL_CATCH, LITERAL_DO, LITERAL_ELSE, LITERAL_FINALLY, LITERAL_FOR, LITERAL_IF, LITERAL_RETURN, LITERAL_SYNCHRONIZED, LITERAL_TRY, LITERAL_WHILE, LOR, LT, MINUS, MINUS_ASSIGN, MOD, MOD_ASSIGN, NOT_EQUAL, PLUS, PLUS_ASSIGN, QUESTION, RCURLY, SL, SLIST, SL_ASSIGN, SR, SR_ASSIGN, STAR, STAR_ASSIGN, TYPE_EXTENSION_AND"/>
-        </module>
-    </module>
-</module>
\ No newline at end of file
--- a/checkstyle/file.header	Wed Apr 07 13:35:09 2021 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,13 +0,0 @@
-^/\*\*
-^ \* @package (.*)
-^ \*$
-^ \* @file (.*)
-^ \* @copyright (\d\d\d\d)(-(\d\d\d\d))? ([^<]*) <([^@]*)@(.*)>$
-^ \* @version \$Id
-^ \*$
-^ \* This program can be distributed under the terms of the GNU GPLv3.$
-^ \* See the file LICENSE for details.$
-^ \*\*/$
-^$
-^package
-^$
\ No newline at end of file
--- a/checkstyle/suppressions.xml	Wed Apr 07 13:35:09 2021 +0200
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,7 +0,0 @@
-<?xml version="1.0"?>
-<!DOCTYPE suppressions PUBLIC
-        "-//Puppy Crawl//DTD Suppressions 1.1//EN"
-        "http://www.puppycrawl.com/dtds/suppressions_1_1.dtd">
-<suppressions>
-    <suppress checks="." files="[\\/]stereotypes[\\/].*\.java$"/>
-</suppressions>