-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcheckstyle.xml
More file actions
66 lines (59 loc) · 2.76 KB
/
Copy pathcheckstyle.xml
File metadata and controls
66 lines (59 loc) · 2.76 KB
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
<?xml version="1.0"?>
<!DOCTYPE module PUBLIC
"-//Checkstyle//DTD Checkstyle Configuration 1.3//EN"
"https://checkstyle.org/dtds/configuration_1_3.dtd">
<!--
Starter ruleset for moza-profiel-service. Deliberately small: only the rules the
team already follows plus the ones that have come up in review. Severity is "warning"
so this stays informational until the team decides to gate (raise to "error" + bind
the check goal to verify in pom.xml). Grow the ruleset by adding modules below.
-->
<module name="Checker">
<property name="severity" value="error"/>
<property name="charset" value="UTF-8"/>
<property name="fileExtensions" value="java"/>
<!-- Max line length (matches the project's existing ~120-col convention). -->
<module name="LineLength">
<property name="max" value="120"/>
<property name="ignorePattern" value="^package.*|^import.*|^\s*\*.*https?://"/>
</module>
<!-- No more than one consecutive blank line. -->
<module name="RegexpMultiline">
<property name="format" value="\r?\n[ \t]*\r?\n[ \t]*\r?\n"/>
<property name="message" value="Meerdere opeenvolgende lege regels"/>
</module>
<!-- Optional suppressions; absent file is fine. -->
<module name="SuppressionFilter">
<property name="file" value="config/checkstyle/suppressions.xml"/>
<property name="optional" value="true"/>
</module>
<module name="TreeWalker">
<!-- Imports -->
<module name="AvoidStarImport"/>
<module name="UnusedImports">
<property name="processJavadoc" value="true"/>
</module>
<module name="RedundantImport"/>
<module name="CustomImportOrder">
<property name="customImportOrderRules"
value="THIRD_PARTY_PACKAGE###STANDARD_JAVA_PACKAGE###STATIC"/>
<property name="standardPackageRegExp" value="^(java|javax)\."/>
<property name="sortImportsInGroupAlphabetically" value="true"/>
<property name="separateLineBetweenGroups" value="true"/>
</module>
<!-- Complexity (suppressed for test sources via suppressions.xml) -->
<module name="CyclomaticComplexity">
<property name="max" value="15"/>
</module>
<module name="NPathComplexity"/>
<module name="BooleanExpressionComplexity"/>
<!-- Whitespace / statements -->
<module name="WhitespaceAround">
<!-- Don't flag idiomatic empty bodies like `record X(...) {}`. -->
<property name="allowEmptyTypes" value="true"/>
<property name="allowEmptyConstructors" value="true"/>
<property name="allowEmptyMethods" value="true"/>
</module>
<module name="OneStatementPerLine"/>
</module>
</module>