-
Notifications
You must be signed in to change notification settings - Fork 129
Expand file tree
/
Copy pathcode_checks.xml
More file actions
executable file
·38 lines (28 loc) · 1.3 KB
/
code_checks.xml
File metadata and controls
executable file
·38 lines (28 loc) · 1.3 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
<?xml version="1.0"?>
<!DOCTYPE module PUBLIC
"-//Puppy Crawl//DTD Check Configuration 1.2//EN"
"http://www.puppycrawl.com/dtds/configuration_1_2.dtd">
<module name="Checker">
<!-- 检查文件是否以一个新行结束-->
<module name="NewlineAtEndOfFile"/>
<!-- 检查文件中是否含有tab键-->
<module name="FileTabCharacter"/>
<module name="TreeWalker">
<!-- 常量全部用大写-->
<module name="ConstantName"/>
<!-- 避免.*,重复多余的和不使用的import-->
<module name="AvoidStarImport"/>
<module name="RedundantImport"/>
<module name="UnusedImports"/>
<!-- 成员变量格式为:m+大写+字母-->
<module name="MemberName">
<property name="format" value="^m[A-Z][a-zA-Z0-9]*$"/>
</module>
<!-- 检查代码块:起始大括号和if等同行,不能有空的代码块,结束大括号另起一行-->
<module name="LeftCurly"/>
<module name="NeedBraces"/>
<module name="RightCurly"/>
<!-- 当有多重修饰符时,修饰符采用以下顺序:(public,protected,private,abstract,static,final,transient,volatile,synchronized,native,strictfp) -->
<module name="ModifierOrder"/>
</module>
</module>