summaryrefslogtreecommitdiff
path: root/backend/config
diff options
context:
space:
mode:
authorjbion <joffrey.bion@amadeus.com>2017-03-13 20:07:12 +0100
committerjbion <joffrey.bion@amadeus.com>2017-03-13 20:07:12 +0100
commit24ff7b1dd384fcdb79d5c04131922e5a81332196 (patch)
tree32f48ff89c1dd5516da1a83aae0e008c8670abc6 /backend/config
parentUpdate readme with work in progress status information (diff)
downloadseven-wonders-24ff7b1dd384fcdb79d5c04131922e5a81332196.tar.gz
seven-wonders-24ff7b1dd384fcdb79d5c04131922e5a81332196.tar.bz2
seven-wonders-24ff7b1dd384fcdb79d5c04131922e5a81332196.zip
Add checkstyle configuration
Diffstat (limited to 'backend/config')
-rw-r--r--backend/config/checkstyle/checkstyle.xml113
1 files changed, 113 insertions, 0 deletions
diff --git a/backend/config/checkstyle/checkstyle.xml b/backend/config/checkstyle/checkstyle.xml
new file mode 100644
index 00000000..5722bd78
--- /dev/null
+++ b/backend/config/checkstyle/checkstyle.xml
@@ -0,0 +1,113 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.2//EN"
+ "http://www.puppycrawl.com/dtds/configuration_1_2.dtd">
+
+<module name="Checker">
+ <property name="severity" value="warning"/>
+
+ <module name="FileTabCharacter">
+ <property name="eachLine" value="true"/>
+ </module>
+ <module name="NewlineAtEndOfFile"/>
+
+ <module name="TreeWalker">
+ <property name="tabWidth" value="4"/>
+ <module name="Indentation">
+ <property name="caseIndent" value="0"/>
+ <property name="basicOffset" value="4"/>
+ <property name="braceAdjustment" value="0"/>
+ <property name="arrayInitIndent" value="8"/>
+ <property name="lineWrappingIndentation" value="8"/>
+ </module>
+ <module name="LineLength">
+ <property name="max" value="121"/>
+ <property name="ignorePattern" value="^package.*|^import.*|a href|href|http://|https://|ftp://"/>
+ </module>
+ <module name="ArrayTypeStyle"/>
+ <module name="CovariantEquals"/>
+ <module name="AvoidStarImport">
+ <property name="allowClassImports" value="false"/>
+ <property name="allowStaticMemberImports" value="false"/>
+ <property name="excludes" value="java.io,java.net,java.lang.Math,javafx.scene.control"/>
+ </module>
+ <module name="UnusedImports"/>
+ <module name="ClassTypeParameterName">
+ <property name="format" value="(^[A-Z][0-9]?)$|([A-Z][a-zA-Z0-9]*[T]$)"/>
+ </module>
+ <module name="EmptyBlock">
+ <property name="tokens" value="LITERAL_TRY, LITERAL_FINALLY, LITERAL_IF, LITERAL_ELSE, LITERAL_SWITCH"/>
+ <property name="option" value="TEXT"/>
+ </module>
+ <module name="FallThrough"/>
+ <module name="GenericWhitespace"/>
+
+ <module name="NoFinalizer"/>
+ <module name="UpperEll"/>
+ <module name="IllegalTokenText">
+ <property name="message" value="Avoid using corresponding octal or Unicode escape."/>
+ <property name="tokens" value="STRING_LITERAL, CHAR_LITERAL"/>
+ <property name="format"
+ value="\\u00(08|09|0(a|A)|0(c|C)|0(d|D)|22|27|5(C|c))|\\(0(10|11|12|14|15|42|47)|134)"/>
+ </module>
+ <module name="RedundantModifier"/>
+ <module name="ModifierOrder"/>
+ <module name="MultipleVariableDeclarations"/>
+ <module name="EmptyStatement"/>
+ <module name="OneStatementPerLine"/>
+ <module name="OperatorWrap">
+ <property name="tokens"
+ value="BAND, BOR, BSR, BXOR, DIV, EQUAL, GE, GT, LAND, LE, LITERAL_INSTANCEOF, LOR, LT, MINUS, MOD, NOT_EQUAL, PLUS, QUESTION, SL, SR, STAR "/>
+ <property name="option" value="NL"/>
+ </module>
+ <module name="NeedBraces"/>
+ <module name="LeftCurly"/>
+ <module name="RightCurly">
+ <property name="tokens"
+ value="CLASS_DEF, METHOD_DEF, CTOR_DEF, LITERAL_FOR, LITERAL_WHILE, LITERAL_DO, STATIC_INIT, INSTANCE_INIT"/>
+ <property name="option" value="alone"/>
+ </module>
+
+ <module name="WhitespaceAround">
+ <property name="allowEmptyMethods" value="true"/>
+ <property name="allowEmptyConstructors" value="true"/>
+ </module>
+ <module name="NoWhitespaceBefore">
+ <property name="tokens" value="COMMA, SEMI, POST_INC, POST_DEC"/>
+ </module>
+ <module name="MethodParamPad"/>
+
+
+ <module name="PackageName">
+ <property name="format" value="^[a-z]+(\.[a-z][a-z0-9]*)*$"/>
+ </module>
+ <module name="OuterTypeFilename"/>
+ <module name="TypeName"/>
+ <module name="MemberName">
+ <property name="format" value="^[a-z][a-zA-Z0-9]*$"/>
+ </module>
+ <module name="MethodName">
+ <property name="format" value="^[a-z][a-z0-9][a-zA-Z0-9_]*$"/>
+ </module>
+ <module name="ParameterName">
+ <property name="format" value="^[a-z][a-zA-Z0-9]*$"/>
+ </module>
+ <module name="MethodTypeParameterName">
+ <property name="format" value="(^[A-Z][0-9]?)$|([A-Z][a-zA-Z0-9]*[T]$)"/>
+ </module>
+ <module name="LocalVariableName">
+ <property name="tokens" value="VARIABLE_DEF"/>
+ <property name="format" value="^[a-z][a-zA-Z0-9]*$"/>
+ </module>
+
+ <module name="JavadocMethod">
+ <property name="scope" value="public"/>
+ <property name="allowedAnnotations" value="Override,FXML"/>
+ <property name="allowThrowsTagsForSubclasses" value="true"/>
+ <property name="allowMissingParamTags" value="false"/>
+ <property name="allowMissingReturnTag" value="true"/>
+ <property name="allowMissingThrowsTags" value="false"/>
+ <property name="allowMissingJavadoc" value="true"/>
+ <property name="ignoreMethodNamesRegex" value=".*Property"/>
+ </module>
+ </module>
+</module> \ No newline at end of file
bgstack15