-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcheckstyle_java_standalone.xml
More file actions
38 lines (30 loc) · 1.21 KB
/
checkstyle_java_standalone.xml
File metadata and controls
38 lines (30 loc) · 1.21 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.3//EN"
"http://www.puppycrawl.com/dtds/configuration_1_3.dtd">
<module name="Checker">
<module name="TreeWalker">
<module name="IllegalImport">
<property name="illegalPkgs" value="java.lang.reflect, java.net, javax"/>
</module>
<module name="RegexpSinglelineJava">
<!-- . matches any character, so we need to
escape it and use \. to match dots. -->
<property name="format" value="System\.in"/>
<property name="ignoreComments" value="true"/>
<property name="message" value="Reading form Standard input (System.in) should be avoided..!"/>
</module>
<module name="RegexpSinglelineJava">
<!-- . matches any character, so we need to
escape it and use \. to match dots. -->
<property name="format" value="java\.lang\.reflect"/>
<property name="ignoreComments" value="true"/>
<property name="message" value="Using of reflection is prohibited..!"/>
</module>
<module name="RedundantImport"/>
<module name="EmptyBlock"/>
</module> <!-- End of TreeWalker -->
<module name="FileTabCharacter">
<property name="eachLine" value="false"/>
</module>
</module>