This repository has been archived by the owner on Jan 17, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathchecksytle.xml
83 lines (62 loc) · 2.61 KB
/
checksytle.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
<?xml version="1.0"?>
<!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.3//EN" "http://www.puppycrawl.com/dtds/configuration_1_3.dtd">
<!-- Checkstyle configuration for Extended Directed Practical in Java ESEO 2014 -->
<!-- Use the Assignment Centre Listener -->
<module name="Checker">
<!-- <module name="SuppressionFilter">
<property name="file" value="./suppressions.xml"/>
</module>-->
<!-- <property name="file" value="audit.txt"/> -->
<!-- </module> -->
<!-- Check File is no longer than 2000 lines!!! -->
<module name="FileLength" />
<module name="TreeWalker">
<!--Naming Conventions -->
<module name="ConstantName"></module>
<module name="LocalFinalVariableName"></module>
<module name="LocalVariableName"></module>
<module name="MemberName"></module>
<module name="MethodName"></module>
<module name="PackageName"></module>
<module name="ParameterName"></module>
<module name="StaticVariableName"></module>
<module name="TypeName"></module>
<!--Imports-->
<module name="AvoidStarImport" />
<module name="RedundantImport" />
<!--Size Violations-->
<module name="LineLength">
<property name="max" value="150" />
</module>
<module name="MethodLength" />
<module name="ParameterNumber" />
<!-- Coding and Design -->
<module name="EmptyStatement" />
<module name="MissingSwitchDefault" />
<module name="SimplifyBooleanExpression" />
<module name="SimplifyBooleanReturn" />
<module name="HiddenField">
<property name="ignoreConstructorParameter" value="true" />
<property name="ignoreSetter" value="true" />
</module>
<module name="ModifiedControlVariable" />
<module name="StringLiteralEquality" />
<module name="DefaultComesLast" />
<module name="OneStatementPerLine" />
<module name="InterfaceIsType" />
<module name="ReturnCount">
<property name="max" value="3" />
</module>
<!--Complexity major minor-->
<module name="CyclomaticComplexity">
<property name="max" value="7" />
</module>
<module name="BooleanExpressionComplexity" />
<!-- <module name="ClassFanOutComplexity">
<property name="max" value="25"/>
</module>
-->
<module name="JavaNCSS" />
<module name="NPathComplexity" />
</module>
</module>