-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
checkstyle.xml
48 lines (45 loc) · 1.78 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
<?xml version="1.0" ?>
<!DOCTYPE module PUBLIC "-//Checkstyle//DTD Checkstyle Configuration 1.3//EN" "https://checkstyle.org/dtds/configuration_1_3.dtd">
<module name="Checker">
<module name="TreeWalker">
<!-- Imports -->
<module name="RedundantImport" />
<module name="UnusedImports" />
<module name="IllegalImport">
<property name="regexp" value="true" />
<!-- Reject any org.junit import that's not also org.junit.jupiter: -->
<property name="illegalClasses" value="^org\.junit\.(?!jupiter\.)(?!platform\.).+" />
</module>
<!-- Class design -->
<module name="FinalClass" />
<module name="InterfaceIsType" />
<module name="MutableException" />
<module name="VisibilityModifier" />
<!-- Coding -->
<module name="DeclarationOrder" />
<module name="InnerAssignment" />
<module name="UnusedLocalVariable" />
<!-- Naming Conventions -->
<module name="CatchParameterName" />
<module name="LambdaParameterName">
<!-- Allow "_" in anticipation of unnamed variables -->
<property name="format" value="^[a-z][a-zA-Z0-9]*$|^[_]*$" />
</module>
<module name="LocalFinalVariableName" />
<module name="LocalVariableName" />
<module name="MemberName" />
<module name="MethodName" />
<module name="PackageName" />
<module name="ParameterName">
<!-- Allow "_" in anticipation of unnamed variables -->
<property name="format" value="^[a-z][a-zA-Z0-9]*$|^[_]*$" />
</module>
<module name="PatternVariableName">
<!-- Allow "_" in anticipation of unnamed variables -->
<property name="format" value="^[a-z][a-zA-Z0-9]*$|^[_]*$" />
</module>
<module name="RecordComponentName" />
<module name="StaticVariableName" />
<module name="TypeName" />
</module>
</module>