author | pmuthuswamy |
Wed, 05 Sep 2018 11:52:15 +0530 | |
changeset 51640 | 58ea9afe0eb8 |
parent 47216 | 71c04702a3d5 |
permissions | -rw-r--r-- |
11054
c4224d65eb3e
7110974: (javac) add coding conventions and style checkers for langtools
ksrini
parents:
diff
changeset
|
1 |
<?xml version="1.0"?> |
c4224d65eb3e
7110974: (javac) add coding conventions and style checkers for langtools
ksrini
parents:
diff
changeset
|
2 |
<!DOCTYPE module PUBLIC |
c4224d65eb3e
7110974: (javac) add coding conventions and style checkers for langtools
ksrini
parents:
diff
changeset
|
3 |
"-//Puppy Crawl//DTD Check Configuration 1.3//EN" |
c4224d65eb3e
7110974: (javac) add coding conventions and style checkers for langtools
ksrini
parents:
diff
changeset
|
4 |
"http://www.puppycrawl.com/dtds/configuration_1_3.dtd"> |
c4224d65eb3e
7110974: (javac) add coding conventions and style checkers for langtools
ksrini
parents:
diff
changeset
|
5 |
|
c4224d65eb3e
7110974: (javac) add coding conventions and style checkers for langtools
ksrini
parents:
diff
changeset
|
6 |
<!-- |
c4224d65eb3e
7110974: (javac) add coding conventions and style checkers for langtools
ksrini
parents:
diff
changeset
|
7 |
Checks for initial langtools code conventions, we are starting with |
c4224d65eb3e
7110974: (javac) add coding conventions and style checkers for langtools
ksrini
parents:
diff
changeset
|
8 |
imports and import orders and this will grow to encompass other |
c4224d65eb3e
7110974: (javac) add coding conventions and style checkers for langtools
ksrini
parents:
diff
changeset
|
9 |
violations over time. |
c4224d65eb3e
7110974: (javac) add coding conventions and style checkers for langtools
ksrini
parents:
diff
changeset
|
10 |
--> |
c4224d65eb3e
7110974: (javac) add coding conventions and style checkers for langtools
ksrini
parents:
diff
changeset
|
11 |
|
c4224d65eb3e
7110974: (javac) add coding conventions and style checkers for langtools
ksrini
parents:
diff
changeset
|
12 |
<module name="Checker"> |
c4224d65eb3e
7110974: (javac) add coding conventions and style checkers for langtools
ksrini
parents:
diff
changeset
|
13 |
|
c4224d65eb3e
7110974: (javac) add coding conventions and style checkers for langtools
ksrini
parents:
diff
changeset
|
14 |
<!-- Checks for whitespace. --> |
c4224d65eb3e
7110974: (javac) add coding conventions and style checkers for langtools
ksrini
parents:
diff
changeset
|
15 |
<module name="FileTabCharacter"> |
c4224d65eb3e
7110974: (javac) add coding conventions and style checkers for langtools
ksrini
parents:
diff
changeset
|
16 |
<property name="fileExtensions" value=".java"/> |
c4224d65eb3e
7110974: (javac) add coding conventions and style checkers for langtools
ksrini
parents:
diff
changeset
|
17 |
</module> |
c4224d65eb3e
7110974: (javac) add coding conventions and style checkers for langtools
ksrini
parents:
diff
changeset
|
18 |
|
c4224d65eb3e
7110974: (javac) add coding conventions and style checkers for langtools
ksrini
parents:
diff
changeset
|
19 |
<!-- Miscellaneous other checks. --> |
c4224d65eb3e
7110974: (javac) add coding conventions and style checkers for langtools
ksrini
parents:
diff
changeset
|
20 |
<module name="RegexpSingleline"> |
c4224d65eb3e
7110974: (javac) add coding conventions and style checkers for langtools
ksrini
parents:
diff
changeset
|
21 |
<property name="format" value="\s+$"/> |
c4224d65eb3e
7110974: (javac) add coding conventions and style checkers for langtools
ksrini
parents:
diff
changeset
|
22 |
<property name="minimum" value="0"/> |
c4224d65eb3e
7110974: (javac) add coding conventions and style checkers for langtools
ksrini
parents:
diff
changeset
|
23 |
<property name="maximum" value="0"/> |
c4224d65eb3e
7110974: (javac) add coding conventions and style checkers for langtools
ksrini
parents:
diff
changeset
|
24 |
<property name="message" value="Line has trailing spaces."/> |
c4224d65eb3e
7110974: (javac) add coding conventions and style checkers for langtools
ksrini
parents:
diff
changeset
|
25 |
<property name="fileExtensions" value=".java .html"/> |
c4224d65eb3e
7110974: (javac) add coding conventions and style checkers for langtools
ksrini
parents:
diff
changeset
|
26 |
</module> |
c4224d65eb3e
7110974: (javac) add coding conventions and style checkers for langtools
ksrini
parents:
diff
changeset
|
27 |
|
c4224d65eb3e
7110974: (javac) add coding conventions and style checkers for langtools
ksrini
parents:
diff
changeset
|
28 |
<module name="TreeWalker"> |
c4224d65eb3e
7110974: (javac) add coding conventions and style checkers for langtools
ksrini
parents:
diff
changeset
|
29 |
<!-- Checks for imports --> |
c4224d65eb3e
7110974: (javac) add coding conventions and style checkers for langtools
ksrini
parents:
diff
changeset
|
30 |
<!-- |
c4224d65eb3e
7110974: (javac) add coding conventions and style checkers for langtools
ksrini
parents:
diff
changeset
|
31 |
<module name="AvoidStarImport"/> |
c4224d65eb3e
7110974: (javac) add coding conventions and style checkers for langtools
ksrini
parents:
diff
changeset
|
32 |
<module name="IllegalImport"/> |
c4224d65eb3e
7110974: (javac) add coding conventions and style checkers for langtools
ksrini
parents:
diff
changeset
|
33 |
--> |
c4224d65eb3e
7110974: (javac) add coding conventions and style checkers for langtools
ksrini
parents:
diff
changeset
|
34 |
<module name="GenericWhitespace"/> |
c4224d65eb3e
7110974: (javac) add coding conventions and style checkers for langtools
ksrini
parents:
diff
changeset
|
35 |
<module name="RedundantImport"/> |
c4224d65eb3e
7110974: (javac) add coding conventions and style checkers for langtools
ksrini
parents:
diff
changeset
|
36 |
<module name="UnusedImports"/> |
c4224d65eb3e
7110974: (javac) add coding conventions and style checkers for langtools
ksrini
parents:
diff
changeset
|
37 |
<module name="ImportOrder"> |
c4224d65eb3e
7110974: (javac) add coding conventions and style checkers for langtools
ksrini
parents:
diff
changeset
|
38 |
<property name="groups" value="java, javax, org, com"/> |
c4224d65eb3e
7110974: (javac) add coding conventions and style checkers for langtools
ksrini
parents:
diff
changeset
|
39 |
<property name="ordered" value="true"/> |
c4224d65eb3e
7110974: (javac) add coding conventions and style checkers for langtools
ksrini
parents:
diff
changeset
|
40 |
<property name="separated" value="true"/> |
c4224d65eb3e
7110974: (javac) add coding conventions and style checkers for langtools
ksrini
parents:
diff
changeset
|
41 |
</module> |
c4224d65eb3e
7110974: (javac) add coding conventions and style checkers for langtools
ksrini
parents:
diff
changeset
|
42 |
<module name="EmptyForInitializerPad"> |
c4224d65eb3e
7110974: (javac) add coding conventions and style checkers for langtools
ksrini
parents:
diff
changeset
|
43 |
<property name="option" value="space"/> |
c4224d65eb3e
7110974: (javac) add coding conventions and style checkers for langtools
ksrini
parents:
diff
changeset
|
44 |
</module> |
c4224d65eb3e
7110974: (javac) add coding conventions and style checkers for langtools
ksrini
parents:
diff
changeset
|
45 |
<module name="WhitespaceAfter"/> |
c4224d65eb3e
7110974: (javac) add coding conventions and style checkers for langtools
ksrini
parents:
diff
changeset
|
46 |
</module> |
c4224d65eb3e
7110974: (javac) add coding conventions and style checkers for langtools
ksrini
parents:
diff
changeset
|
47 |
</module> |