forked from MyCoRe-Org/mycore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
checkstyle.xml
135 lines (132 loc) · 6.22 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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module PUBLIC
"-//Checkstyle//DTD Checkstyle Configuration 1.3//EN"
"https://checkstyle.org/dtds/configuration_1_3.dtd">
<module name="Checker">
<property name="charset" value="UTF-8"/>
<property name="fileExtensions" value="java, properties, xml, xsl"/>
<module name="BeforeExecutionExclusionFileFilter">
<property name="fileNamePattern" value="module\-info\.java$"/>
</module>
<module name="NewlineAtEndOfFile"/>
<module name="LineLength">
<property name="ignorePattern" value="^package.*|^import.*|a href|href|http://|https://|ftp://|@see|^\s*\* MCR.|^\s*\*.*?.*&"/>
<property name="max" value="120"/>
<property name="fileExtensions" value="java, xml, xsl"/>
</module>
<module name="SuppressWarningsFilter"/>
<module name="TreeWalker">
<property name="tabWidth" value="4"/>
<module name="SuppressWarningsHolder"/>
<module name="SuppressionCommentFilter">
<property name="offCommentFormat" value="CSOFF\: ([\w\|]+)"/>
<property name="onCommentFormat" value="CSON\: ([\w\|]+)"/>
<property name="checkFormat" value="$1"/>
</module>
<module name="ModifiedControlVariable" />
<module name="InnerTypeLast" />
<module name="AvoidStarImport"/>
<module name="InnerAssignment"/>
<module name="NeedBraces"/>
<module name="EmptyBlock"/>
<module name="RedundantImport"/>
<module name="RedundantModifier"/>
<module name="ArrayTrailingComma"/>
<!-- new rules -->
<module name="MemberName"/>
<module name="LocalVariableName"/>
<module name="ParameterName"/>
<module name="MethodName"/>
<module name="PackageName"/>
<module name="ConstantName"/>
<module name="TypeName"/>
<module name="LocalFinalVariableName"/>
<module name="UnusedImports"/>
<module name="IllegalImport"/>
<module name="LeftCurly"/>
<module name="RightCurly"/>
<!-- old mycore rules -->
<!--
<module name="JavadocMethod">
<property name="scope" value="package"/>
<property name="logLoadErrors" value="true"/>
<property name="suppressLoadErrors" value="true"/>
</module>
<module name="JavadocType"/>
<module name="JavadocVariable">
<property name="scope" value="protected"/>
</module>
<module name="JavadocStyle"/>
<module name="StaticVariableName"/>
<module name="MethodLength"/>
<module name="ParameterNumber"/>
<module name="EmptyForIteratorPad"/>
<module name="MethodParamPad"/>
<module name="NoWhitespaceAfter">
<property name="tokens" value="BNOT,DEC,DOT,INC,LNOT,UNARY_MINUS,UNARY_PLUS"/>
</module>
<module name="NoWhitespaceBefore"/>
<module name="OperatorWrap"/>
<module name="ParenPad"/>
<module name="TypecastParenPad"/>
<module name="WhitespaceAfter"/>
<module name="WhitespaceAround"/>
<module name="ModifierOrder"/>
<module name="AvoidNestedBlocks"/>
<module name="EmptyStatement"/>
<module name="EqualsHashCode"/>
<module name="HiddenField"/>
<module name="IllegalInstantiation"/>
<module name="MissingSwitchDefault"/>
<module name="SimplifyBooleanExpression"/>
<module name="SimplifyBooleanReturn"/>
<module name="FinalClass"/>
<module name="HideUtilityClassConstructor"/>
<module name="InterfaceIsType"/>
<module name="ArrayTypeStyle"/>
<module name="FinalParameters"/>
<module name="TodoComment">
<property name="severity" value="ignore"/>
<metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/>
</module>
<module name="UpperEll"/>
<module name="MissingDeprecated">
<metadata name="net.sf.eclipsecs.core.comment" value="Verifies that both the java.lang.Deprecated annotation is present and the @deprecated Javadoc tag is present when either is present."/>
<property name="severity" value="warning"/>
</module>
<module name="MissingOverride">
<metadata name="net.sf.eclipsecs.core.comment" value="Verifies that the java.lang.Override annotation is present when the {@inheritDoc} javadoc tag is present."/>
</module>
<module name="DefaultComesLast"/>
<module name="DeclarationOrder"/>
<module name="EqualsAvoidNull"/>
<module name="FallThrough"/>
<module name="FinalLocalVariable">
<property name="severity" value="info"/>
<property name="tokens" value="PARAMETER_DEF,VARIABLE_DEF"/>
</module>
<module name="StringLiteralEquality"/>
<module name="CyclomaticComplexity"/>
<module name="Indentation"/>
</module>
<module name="JavadocPackage"/>
<module name="Translation"/>
<module name="FileLength"/>
<module name="FileTabCharacter">
<property name="severity" value="ignore"/>
<metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/>
</module>
<module name="RegexpSingleline">
<property name="severity" value="ignore"/>
<property name="format" value="\s+$"/>
<property name="message" value="Line has trailing spaces."/>
<metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/>
</module>
<module name="Header">
<property name="severity" value="warning"/>
<property name="header" value="/*\n * $RCSfile$\n * $Revision: 15646 $ $Date: 2009-07-28 11:32:04 +0200 (Di, 28 Jul 2009) $\n *\n * This file is part of *** M y C o R e ***\n * See http://www.mycore.de/ for details.\n *\n * This program is free software; you can use it, redistribute it\n * and / or modify it under the terms of the GNU General Public License\n * (GPL) as published by the Free Software Foundation; either version 2\n * of the License or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful, but\n * WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU General Public License for more details.\n *\n * You should have received a copy of the GNU General Public License\n * along with this program, in a file called gpl.txt or license.txt.\n * If not, write to the Free Software Foundation Inc.,\n * 59 Temple Place - Suite 330, Boston, MA 02111-1307 USA\n */"/>
<property name="ignoreLines" value="2,3"/>
<property name="fileExtensions" value="java"/>
-->
</module>
</module>