-
Notifications
You must be signed in to change notification settings - Fork 5
/
checkstyle.xml
58 lines (46 loc) · 2.29 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"?>
<!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.1//EN" "http://www.puppycrawl.com/dtds/configuration_1_1.dtd">
<!-- This is a checkstyle configuration file. See http://checkstyle.sourceforge.net/config.html for
configuration details -->
<module name="Checker">
<property name="localeLanguage" value="en" />
<module name="Header">
<property name="headerFile" value="${checkstyle.header.file}" />
</module>
<!-- http://checkstyle.sourceforge.net/config_whitespace.html#FileTabCharacter -->
<module name="FileTabCharacter">
<property name="fileExtensions" value="java" />
</module>
<module name="TreeWalker">
<!-- Unfortunately there so few javadocs that I have to switch it off :-( -->
<!--<module name="JavadocType">-->
<!--<property name="authorFormat" value="\S"/>-->
<!--<property name="allowMissingParamTags" value="true" />-->
<!--</module>-->
<!--Instead of it we check the presence of "@author" tag with regexp -->
<!--http://checkstyle.sourceforge.net/config_misc.html#Regexp-->
<module name="Regexp">
<property name="format" value="@author"/>
<property name="message" value="@author javadoc is required"/>
</module>
<module name="MemberName">
<property name="format" value="^[a-z][a-zA-Z0-9]*$"/>
</module>
<!--Disable lower-case long literals like 666l. Use 666L notation. -->
<!--http://checkstyle.sourceforge.net/config_misc.html#UpperEll-->
<module name="UpperEll"/>
</module>
<!-- Disable default IntelliJ IDEA headers -->
<module name="RegexpSingleline">
<property name="format" value="Created by IntelliJ IDEA"/>
<property name="message" value="Don't use IntelliJ IDEA default file template" />
</module>
<module name="RegexpMultiline">
<property name="format" value="[;}{]\s*((?!/\*[^/]*@deprecated +[A-Za-z@0-9_\-]+[^/]*\*/)/\*[^/]+\*/)?\s*@Deprecated"/>
<property name="message" value="Deprecated without comment" />
</module>
<module name="RegexpSingleline">
<property name="format" value="[А-Яа-я]"/>
<property name="message" value="Russian characters are prohibited" />
</module>
</module>