File: checkstyle.xml

package info (click to toggle)
classworlds 1.0.1-1.1
  • links: PTS
  • area: contrib
  • in suites: etch, etch-m68k, sarge
  • size: 548 kB
  • ctags: 381
  • sloc: java: 3,211; xml: 1,103; makefile: 45
file content (67 lines) | stat: -rw-r--r-- 1,634 bytes parent folder | download
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
58
59
60
61
62
63
64
65
66
67
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module
    PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.1//EN"
    "http://www.puppycrawl.com/dtds/configuration_1_1.dtd">

<module name="Checker">
  <module name="NewlineAtEndOfFile"/>

  <module name="TreeWalker">
    <!--
      Naming Conventions
    -->
    <module name="ConstantName">
      <property name="format" value="^[a-zA-Z][a-zA-Z0-9_]*$"/>
    </module>

    <!--
      Headers
    -->
    <module name="Header">
      <property name="headerFile" value="LICENSE.txt"/>
      <property name="ignoreLines" value="1,4"/>
    </module>

    <!--
      Imports
    -->
    <module name="AvoidStarImport"/>
    <module name="IllegalImport"/>
    <module name="UnusedImports"/>

    <!--
      Size Violations
    -->
    <module name="LineLength">
      <property name="max" value="132"/>
    </module>

    <!--
      Whitespace
    -->
    <module name="TabCharacter"/>
    <module name="ParenPad">
      <property name="option" value="space"/>
      <property name="tokens" value="CTOR_CALL, METHOD_CALL, SUPER_CTOR_CALL"/>
    </module>

    <!--
      Blocks
    -->
    <module name="LeftCurly">
      <property name="option" value="nl"/>
      <property name="maxLineLength" value="132"/>
    </module>
    <module name="com.puppycrawl.tools.checkstyle.checks.RightCurlyCheck">
      <property name="option" value="alone"/>
    </module>

    <!--
      Miscellaneous
    -->
    <module name="GenericIllegalRegexp">
      <property name="format" value="\s+$"/>
      <property name="message" value="Line has trailing spaces"/>
    </module>
  </module>
</module>