-
Notifications
You must be signed in to change notification settings - Fork 3
/
checkstyle.xml
executable file
·38 lines (31 loc) · 1.19 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
<?xml version="1.0" ?>
<!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="TreeWalker">
<module name="InstanceofUsage"/>
<module name="StaticUsage"/>
<module name="DiscouragedMethodCallCheck">
<property name="checkedMethods" value="main:System.exit,System.in,System.out,System.err"/>
</module>
<module name="MemberName">
<property name="format" value="^m[a-zA-Z0-9]*$"/>
<message key="name.invalidPattern" value="Member ''{0}'' must start with a lowercase ''m'' (checked pattern ''{1}'')."/>
</module>
<!-- metrics -->
<module name="AttributesPerClass"/>
<module name="MethodsPerClass"/>
<module name="NumberOfClasses"/>
<module name="NumberOfStatementsPerMethod"/>
<module name="MaxNestedBlockDepth"/>
<module name="NumberOfArguments"/>
<module name="NumberOfMethodsPerClass"/>
</module>
<module name="MetricListener">
<property name="file" value="target/metrics.txt"/>
</module>
<module name="VerboseListener">
<property name="file" value="target/audit.txt"/>
</module>
</module>