mirror of https://github.com/OpenIdentityPlatform/OpenDJ.git

Chris Ridd
12.58.2013 1b775a57a668f45c6f1dd43ce9a2007fa127cbb5
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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<?xml version="1.0"?>
<!DOCTYPE module PUBLIC
    "-//Puppy Crawl//DTD Check Configuration 1.2//EN"
    "http://www.puppycrawl.com/dtds/configuration_1_2.dtd">
 
 
<module name="Checker">
  <module name="TreeWalker">
    <property name="cacheFile" value="${basedir}/.checkstyle-cache/opends-checkstyle.cache" />
 
    <!-- Ensure that each source file starts with the appropriate header -->
    <module name="RegexpHeader">
      <property name="headerFile" value="${basedir}/ext/checkstyle/opendj.sourceheader" />
    </module>
 
 
    <!-- Ensure that all classes and interfaces are documented -->
    <module name="JavadocType">
      <property name="scope" value="private" />
    </module>
 
 
    <!-- Ensure that all non-private methods are documented -->
    <module name="JavadocMethod">
      <property name="scope" value="package" />
      <property name="allowUndeclaredRTE" value="false" />
      <property name="allowMissingParamTags" value="false" />
      <property name="allowMissingJavadoc" value="false" />
    </module>
 
 
    <!-- Ensure that all public and protected fields are documented -->
    <module name="JavadocVariable">
      <property name="scope" value="protected" />
    </module>
 
 
    <!-- Ensure that all Javadoc comments are well-formed -->
    <module name="JavadocStyle">
      <property name="scope" value="private" />
      <property name="checkFirstSentence" value="true" />
      <property name="checkEmptyJavadoc" value="true" />
      <property name="checkHtml" value="true" />
    </module>
 
 
    <!-- Ensure that no line exceeds 80 characters in length -->
    <module name="LineLength">
      <property name="max" value="80" />
    </module>
 
 
    <!-- Ensure that no tab characters are used -->
    <module name="TabCharacter" />
 
 
    <!-- Ensure that no line ends with whitespace -->
    <module name="GenericIllegalRegexp">
      <property name="format" value="\s$" />
      <property name="message" value="Line ends with whitespace." />
    </module>
 
 
    <!-- Check for string == rather than .equals checks -->
    <module name="StringLiteralEquality" />
 
 
    <!-- Check to ensure that anything implmenting .equals(Object) also
         implements .hashCode() -->
    <module name="EqualsHashCode" />
 
 
    <!-- Make sure that all classes have a package statement -->
    <module name="PackageDeclaration" />
 
 
    <!-- Identify any switch statements with fall-through -->
    <module name="FallThrough" />
 
 
    <!-- Make sure that long constants are defined with an uppercase L -->
    <module name="UpperEll" />
 
 
    <!-- Perform basic validation on imports -->
    <module name="RedundantImport" />
    <module name="UnusedImports" />
    <module name="IllegalImport">
      <property name="illegalPkgs" value="sun" />
    </module>
 
 
    <!-- Don't allow empty statements (those that contain just a semicolon) -->
    <module name="EmptyStatement" />
  </module>
</module>