-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathcheckstyle-rule.xml
84 lines (78 loc) · 3.64 KB
/
checkstyle-rule.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
<?xml version="1.0"?>
<!-- Date: 2015-10-04 -->
<!-- Author : Wiseeco -->
<!-- Description : checkstyle rules-->
<!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">
<!-- Checks for blocks. -->
<!-- See http://checkstyle.sf.net/config_blocks.html -->
<module name="EmptyBlock" />
<module name="LeftCurly" />
<module name="RightCurly" />
<module name="AvoidNestedBlocks" />
<!-- Check for Coding. -->
<!-- See http://checkstyle.sourceforge.net/config_coding.html -->
<module name="EmptyStatement" />
<module name="HiddenField"/>
<module name="IllegalInstantiation"/>
<module name="ModifiedControlVariable"/>
<module name="SimplifyBooleanExpression"/>
<module name="IllegalCatch"/>
<module name="FallThrough"/>
<!-- Checks for imports. -->
<!-- See http://checkstyle.sf.net/config_import.html -->
<module name="AvoidStarImport" />
<module name="IllegalImport" />
<module name="RedundantImport" />
<module name="UnusedImports" />
<!-- Checks for Javadoc. -->
<!-- See http://checkstyle.sf.net/config_javadoc.html
<module name="JavadocMethod" />
<module name="JavadocType" />
<module name="JavadocStyle" />-->
<!-- Checks for Naming Conventions. -->
<!-- See http://checkstyle.sf.net/config_naming.html-->
<module name="ConstantName" />
<module name="LocalFinalVariableName" /><!-- 변수 이름은 카멜 표기법 -->
<module name="MemberName"><!-- 변수 이름은 카멜 표기법 -->
<property name="format" value="^[a-z][a-z0-9][a-zA-Z0-9]*$"/>
<message key="name.invalidPattern"
value="Member name ''{0}'' must match pattern ''{1}''."/>
</module>
<module name="MethodName"><!-- 메소드는 카멜 표기법 -->
<property name="format" value="^[a-z][a-z0-9][a-zA-Z0-9]*$"/>
<message key="name.invalidPattern"
value="Method name ''{0}'' must match pattern ''{1}''."/>
</module>
<module name="ParameterName"><!-- 변수 이름은 카멜 표기법 -->
<property name="format" value="^[a-z][a-z0-9][a-zA-Z0-9]*$"/>
<message key="name.invalidPattern"
value="Parameter name ''{0}'' must match pattern ''{1}''."/>
</module>
<module name="StaticVariableName" /><!-- 변수 이름은 카멜 표기법 -->
<module name="TypeName"><!-- 클래스, 인터페이스 이름은 파스칼 표기법 -->
<message key="name.invalidPattern"
value="Type name ''{0}'' must match pattern ''{1}''."/>
</module>
<module name="PackageName">
<property name="format" value="^[a-z]+(\.[a-z][a-z0-9]*)*$"/>
<message key="name.invalidPattern"
value="Package name ''{0}'' must match pattern ''{1}''."/>
</module>
<!-- Checks for whitespace. -->
<!-- See http://checkstyle.sf.net/config_whitespace.html
<module name="EmptyForIteratorPad" />
<module name="GenericWhitespace" />
<module name="MethodParamPad" />
<module name="OperatorWrap" />
<module name="ParenPad" />
<module name="TypecastParenPad" />
<module name="WhitespaceAfter" />
<module name="WhitespaceAround" />-->
<module name="MethodParamPad" />
<!--<module name="MagicNumber" />-->
</module>
</module>