This repository has been archived by the owner on May 22, 2021. It is now read-only.
generated from E-Edu/microservice-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
checkstyle.xml
115 lines (93 loc) · 3.66 KB
/
checkstyle.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module PUBLIC
"-//Puppy Crawl//DTD Check Configuration 1.3//EN"
"http://www.puppycrawl.com/dtds/configuration_1_3.dtd">
<module name="Checker">
<!-- Check for new Line at EOF -->
<module name="NewlineAtEndOfFile">
<property name="lineSeparator" value="lf"/>
</module>
<!-- Allow ignoring things with @SuppressWarnings or comment -->
<module name="SuppressWarningsFilter"/>
<!--Check for trailing spaces -->
<module name="RegexpSingleline">
<property name="format" value="(^\t{0,} + (?![\*@]))|([ \t]+$)"/>
<property name="minimum" value="0"/>
<property name="maximum" value="0"/>
<property name="message" value="Line should use tab indentation and have no trailing spaces."/>
</module>
<module name="TreeWalker">
<module name="SuppressionCommentFilter" />
<!-- Ignore if SuppressWarnings or comment -->
<module name="SuppressWarningsHolder"/>
<!-- Check if Methods, Classes, Interfaces and Enums have a Javadoc Comments -->
<module name="JavadocMethod"/>
<module name="JavadocType">
<property name="scope" value="PRIVATE"/>
<property name="tokens" value="CLASS_DEF, INTERFACE_DEF, ENUM_DEF"/>
</module>
<!-- Check formatting of Javadoc comments -->
<module name="JavadocStyle">
<property name="checkEmptyJavadoc" value="true"/>
</module>
<module name="JavadocParagraph"/>
<module name="AtclauseOrder">
<property name="tagOrder"
value="@version, @param, @return, @throws, @exception, @see, @since, @serial, @serialField, @serialData, @deprecated"/>
<property name="target" value="CLASS_DEF, INTERFACE_DEF, ENUM_DEF, METHOD_DEF, CTOR_DEF, VARIABLE_DEF"/>
</module>
<module name="NonEmptyAtclauseDescription"/>
<!-- Check imports -->
<module name="UnusedImports"/>
<module name="AvoidStarImport"/>
<module name="RedundantImport"/>
<module name="IllegalImport">
<property name="illegalPkgs" value="java.awt, java.sql, javafx, sun"/>
</module>
<!-- Check declaration order of variables -->
<module name="DeclarationOrder"/>
<!-- Check if Constants are written in Capital Letters -->
<module name="ConstantName"/>
<!-- Check if Package Name is correct -->
<module name="PackageName"/>
<!-- Check if non static fields begin lower case -->
<module name="MemberName"/>
<!-- Check if method identifiers begin lower case -->
<module name="MethodName"/>
<!-- Check empty line separators -->
<module name="EmptyLineSeparator">
<property name="tokens"
value="IMPORT, CLASS_DEF, INTERFACE_DEF, ENUM_DEF, STATIC_INIT, INSTANCE_INIT, METHOD_DEF, CTOR_DEF"/>
</module>
<!-- Check default is at end of switch if there is one -->
<module name="DefaultComesLast"/>
<!-- Check if package declaration is correct -->
<module name="PackageDeclaration"/>
<!-- Check different whitespaces -->
<module name="EmptyForIteratorPad"/>
<module name="GenericWhitespace"/>
<module name="MethodParamPad"/>
<module name="ParenPad"/>
<module name="WhitespaceAfter"/>
<module name="WhitespaceAround"/>
<module name="SingleSpaceSeparator"/>
<!-- Check Blocks -->
<module name="EmptyBlock"/>
<module name="LeftCurly"/>
<module name="RightCurly"/>
<!-- Check Code -->
<module name="EmptyStatement"/>
<module name="EqualsHashCode"/>
<module name="MissingSwitchDefault"/>
<module name="IllegalThrows"/>
<module name="IllegalCatch"/>
<module name="SimplifyBooleanExpression"/>
<module name="SimplifyBooleanReturn"/>
<module name="OneStatementPerLine"/>
<module name="ModifiedControlVariable"/>
<module name="RequireThis"/>
<module name="StringLiteralEquality"/>
<!-- Check Misc -->
<module name="ArrayTypeStyle"/>
</module>
</module>