-
Notifications
You must be signed in to change notification settings - Fork 2.3k
/
checkstyle.xml
57 lines (46 loc) · 1.91 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
49
50
51
52
53
54
55
56
57
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module PUBLIC
"-//Puppy Crawl//DTD Check Configuration 1.2//EN"
"http://www.puppycrawl.com/dtds/configuration_1_2.dtd">
<module name="Checker">
<property name="charset" value="UTF-8"/>
<property name="fileExtensions" value="java"/>
<!-- Require license headers (GPL, AGPL or Apache 2.0) -->
<module name="RegexpSingleline">
<property name="format"
value="^(\s|\*)*Copyright \(c\) 2002-[0-9]{4} "Neo Technology,"*$|^(\s|\*)*Licensed to Neo Technology under one or more contributor*$"/>
<property name="minimum" value="1"/>
<property name="maximum" value="1"/>
<property name="message" value="Missing, wrong or duplicated license header"/>
</module>
<!-- Prohibit tabs -->
<module name="FileTabCharacter">
<property name="eachLine" value="true"/>
</module>
<!-- Require new line at the end of file -->
<module name="NewlineAtEndOfFile"/>
<!-- Prohibit trailing spaces -->
<module name="RegexpSingleline">
<property name="format" value="\s+$"/>
<property name="minimum" value="0"/>
<property name="maximum" value="0"/>
<property name="message" value="Line has trailing spaces."/>
</module>
<!-- Prohibit consecutive empty lines (except the lines after package/import) -->
<module name="RegexpMultiline">
<property name="format" value="\n *(?!package )(?!import )[^\n]+\n{3,}"/>
<property name="message" value="Two or more consecutive empty lines"/>
</module>
<module name="TreeWalker">
<module name="PackageDeclaration"/>
<module name="UpperEll"/>
<module name="ArrayTypeStyle"/>
<module name="MissingOverride"/>
<module name="EmptyStatement"/>
<module name="SuperFinalize"/>
<module name="EqualsHashCode"/>
<module name="EmptyCatchBlock">
<property name="exceptionVariableName" value="ignore|ignored"/>
</module>
</module>
</module>