/
kapua.xml
113 lines (86 loc) · 4.38 KB
/
kapua.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
<?xml version="1.0" encoding="UTF-8"?>
<!--
Copyright (c) 2017, 2020 Red Hat Inc and others
All rights reserved. This program and the accompanying materials are made
available under the terms of the Eclipse Public License 2.0
which is available at https://www.eclipse.org/legal/epl-2.0/
SPDX-License-Identifier: EPL-2.0
Contributors:
Red Hat Inc - initial API and implementation
-->
<!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.3//EN" "http://www.puppycrawl.com/dtds/configuration_1_3.dtd">
<module name="Checker">
<module name="SuppressionFilter">
<property name="file" value="${checkstyle.suppressions.file}" />
<property name="optional" value="false" />
</module>
<module name="TreeWalker">
<!-- annotation -->
<module name="AnnotationLocation">
<property name="allowSamelineSingleParameterlessAnnotation" value="false" />
</module>
<module name="MissingDeprecated" />
<!-- imports -->
<module name="AvoidStarImport" />
<module name="AvoidStaticImport" />
<module name="UnusedImports" />
<!-- others -->
<module name="ExplicitInitialization" />
<module name="HideUtilityClassConstructor" />
<module name="StringLiteralEquality" />
<module name="FallThrough">
<property name="reliefPattern" value="\$FALL-THROUGH\$" />
</module>
<module name="OneStatementPerLine" />
<!-- braces -->
<module name="NeedBraces" />
<module name="LeftCurly" />
<!-- names -->
<module name="ConstantName">
<property name="format"
value="^logger|[A-Z][A-Z0-9]*(_[A-Z0-9]+)*$" />
</module>
<module name="LocalFinalVariableName" />
<module name="LocalVariableName" />
<module name="MemberName" />
<module name="MethodName" />
<module name="PackageName" />
<module name="ParameterName" />
<module name="StaticVariableName" />
<!-- whitespaces and lines -->
<module name="EmptyLineSeparator">
<property name="allowMultipleEmptyLinesInsideClassMembers" value="false"/>
<property name="tokens" value="CLASS_DEF, INTERFACE_DEF, ENUM_DEF, STATIC_INIT, INSTANCE_INIT, METHOD_DEF, CTOR_DEF"/>
</module>
<module name="GenericWhitespace" />
<module name="MethodParamPad" />
<module name="NoLineWrap" />
<module name="SingleSpaceSeparator" />
<module name="RegexpSinglelineJava">
<property name="format" value="^\s+$"/>
<property name="message" value="Empty lines must not contain whitespaces"/>
</module>
</module>
<module name="FileTabCharacter" />
<module name="RegexpHeader">
<property name="header"
value="^/\*{79}$\n^ \* Copyright \(c\) (|\d{4}, )2020 (.*) and others\.?$\n^ \*$\n^ \* All rights reserved. This program and the accompanying materials are made$\n^ \* available under the terms of the Eclipse Public License 2.0$\n^ \* which is available at https://www.eclipse.org/legal/epl-2.0/$\n^ \*$\n^ \* SPDX-License-Identifier: EPL-2.0$\n^ \*$\n^ \* Contributors:$\n^ \* (.*)(| - .*)$\n^ \*{79}/\n^package" />
<property name="charset" value="UTF-8" />
<property name="multiLines" value="11" />
<property name="fileExtensions" value="java" />
</module>
<module name="RegexpHeader">
<property name="header"
value="^<\?xml.*>$\n^<!--$\n^ Copyright \(c\) (|\d{4}, )2020 (.*) and others\.?$\n^$\n^ All rights reserved\. This program and the accompanying materials are made$\n^ available under the terms of the Eclipse Public License 2\.0$\n^ which is available at https\:\/\/www.eclipse.org/legal/epl-2.0/$\n^$\n^ SPDX-License-Identifier: EPL-2.0$\n^$\n^ Contributors\:$\n^ (.*)(| - .*)$\n^ ?-->$" />
<property name="charset" value="UTF-8" />
<property name="multiLines" value="12" />
<property name="fileExtensions" value="xml" />
</module>
<!-- Check for CRLF line endings -->
<module name="RegexpMultiline">
<property name="format" value="(?s:\r\n.*)" />
<property name="fileExtensions" value="java,md,xml" />
<property name="message"
value="Only Unix-style line endings are allowed" />
</module>
</module>