~mortenoh/+junk/dhis2-detailed-import-export

« back to all changes in this revision

Viewing changes to dhis-2/checkstyle.xml

  • Committer: larshelge at gmail
  • Date: 2009-03-03 16:46:36 UTC
  • Revision ID: larshelge@gmail.com-20090303164636-2sjlrquo7ib1gf7r
Initial check-in

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<?xml version="1.0"?>
 
2
<!-- 
 
3
/*
 
4
 * Copyright 2001-2004 The Apache Software Foundation.
 
5
 * 
 
6
 * Licensed under the Apache License, Version 2.0 (the "License");
 
7
 * you may not use this file except in compliance with the License.
 
8
 * You may obtain a copy of the License at
 
9
 * 
 
10
 *      http://www.apache.org/licenses/LICENSE-2.0
 
11
 * 
 
12
 * Unless required by applicable law or agreed to in writing, software
 
13
 * distributed under the License is distributed on an "AS IS" BASIS,
 
14
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 
15
 * See the License for the specific language governing permissions and
 
16
 * limitations under the License.
 
17
 */
 
18
 -->
 
19
 
 
20
<!DOCTYPE module PUBLIC
 
21
    "-//Puppy Crawl//DTD Check Configuration 1.1//EN"
 
22
    "http://www.puppycrawl.com/dtds/configuration_1_1.dtd">
 
23
 
 
24
<!--
 
25
  Checkstyle checks configured for Maven.
 
26
-->
 
27
 
 
28
<module name="Checker">
 
29
 
 
30
    <!-- Checks that a package.html file exists for each package.     -->
 
31
    <!-- See http://checkstyle.sf.net/config_javadoc.html#PackageHtml -->
 
32
    <module name="PackageHtml"/>
 
33
 
 
34
    <!-- Checks whether files end with a new line.                        -->
 
35
    <!-- See http://checkstyle.sf.net/config_misc.html#NewlineAtEndOfFile -->
 
36
    <module name="NewlineAtEndOfFile"/>
 
37
 
 
38
    <!-- Checks that property files contain the same keys.         -->
 
39
    <!-- See http://checkstyle.sf.net/config_misc.html#Translation -->
 
40
    <module name="Translation"/>
 
41
 
 
42
    <module name="TreeWalker">
 
43
 
 
44
        <property name="cacheFile" value="${checkstyle.cache.file}"/>
 
45
 
 
46
        <!-- ************************************************************** -->
 
47
        <!-- Checks that are different from the sun coding conventions ones -->
 
48
        <!-- ************************************************************** -->
 
49
        <module name="Header">
 
50
            <property name="headerFile" value="${maven.checkstyle.header.file}"/>
 
51
            <property name="ignoreLines" value="1,2,3,4,5,6"/>
 
52
        </module>
 
53
        <property name="tabWidth" value="4"/>
 
54
        <module name="LeftCurly">
 
55
          <property name="option" value="nl"/>
 
56
        </module>
 
57
        <module name="RightCurly">
 
58
          <property name="option" value="alone"/>
 
59
        </module>
 
60
        <module name="LineLength">
 
61
          <property name="max" value="132"/>
 
62
        </module>
 
63
        <module name="MethodLength">
 
64
          <property name="max" value="175"/>
 
65
        </module>
 
66
        <!-- No Paren pad check
 
67
        <module name="ParenPad"/>
 
68
        -->
 
69
        <module name="ConstantName">
 
70
          <property name="format" value="log|^[a-zA-Z][a-zA-Z0-9_]*$"/>
 
71
        </module>
 
72
        
 
73
        <!-- ************************************************************** -->
 
74
        <!-- Default Sun coding conventions checks                          -->
 
75
        <!-- ************************************************************** -->
 
76
 
 
77
        <!-- Checks for Javadoc comments.                     -->
 
78
        <!-- See http://checkstyle.sf.net/config_javadoc.html -->
 
79
        <!-- trygvela
 
80
        <module name="JavadocMethod"/>
 
81
        <module name="JavadocType"/>
 
82
        <module name="JavadocVariable"/>
 
83
        -->
 
84
 
 
85
 
 
86
        <!-- Checks for Naming Conventions.                  -->
 
87
        <!-- See http://checkstyle.sf.net/config_naming.html -->
 
88
        <module name="LocalFinalVariableName"/>
 
89
        <module name="LocalVariableName"/>
 
90
        <module name="MethodName"/>
 
91
        <module name="PackageName"/>
 
92
        <module name="ParameterName"/>
 
93
        <module name="StaticVariableName"/>
 
94
        <module name="TypeName"/>
 
95
        <module name="MemberName"/>
 
96
 
 
97
        <!-- Checks for imports                              -->
 
98
        <!-- See http://checkstyle.sf.net/config_import.html -->
 
99
        <module name="AvoidStarImport"/>
 
100
        <module name="IllegalImport"/> <!-- defaults to sun.* packages -->
 
101
        <module name="RedundantImport"/>
 
102
        <module name="UnusedImports"/>
 
103
 
 
104
 
 
105
        <!-- Checks for Size Violations.                    -->
 
106
        <!-- See http://checkstyle.sf.net/config_sizes.html -->
 
107
        <module name="FileLength"/>
 
108
        <module name="ParameterNumber"/>
 
109
 
 
110
 
 
111
        <!-- Checks for whitespace                               -->
 
112
        <!-- See http://checkstyle.sf.net/config_whitespace.html -->
 
113
        <module name="EmptyForIteratorPad"/>
 
114
        <module name="NoWhitespaceAfter"/>
 
115
        <module name="NoWhitespaceBefore"/>
 
116
        <module name="OperatorWrap"/>
 
117
        <module name="TabCharacter"/>
 
118
        <module name="WhitespaceAfter"/>
 
119
        <module name="WhitespaceAround"/>
 
120
 
 
121
 
 
122
        <!-- Modifier Checks                                    -->
 
123
        <!-- See http://checkstyle.sf.net/config_modifiers.html -->
 
124
        <module name="ModifierOrder"/>
 
125
        <module name="RedundantModifier"/>
 
126
 
 
127
 
 
128
        <!-- Checks for blocks. You know, those {}'s         -->
 
129
        <!-- See http://checkstyle.sf.net/config_blocks.html -->
 
130
        <module name="AvoidNestedBlocks"/>
 
131
        <module name="EmptyBlock"/>
 
132
        
 
133
        <module name="NeedBraces"/>
 
134
 
 
135
 
 
136
        <!-- Checks for common coding problems               -->
 
137
        <!-- See http://checkstyle.sf.net/config_coding.html -->
 
138
        <module name="AvoidInlineConditionals"/>
 
139
        <module name="DoubleCheckedLocking"/>    <!-- MY FAVOURITE -->
 
140
        <module name="EmptyStatement"/>
 
141
        <module name="EqualsHashCode"/>
 
142
        <module name="HiddenField">
 
143
          <property name="ignoreSetter" value="true"/>
 
144
          <property name="ignoreConstructorParameter" value="true"/>
 
145
        </module>
 
146
        <module name="IllegalInstantiation"/>
 
147
        <module name="InnerAssignment"/>
 
148
        <module name="MagicNumber"/>
 
149
        <module name="MissingSwitchDefault"/>
 
150
        <!--<module name="RedundantThrows"/>-->
 
151
        <module name="SimplifyBooleanExpression"/>
 
152
        <module name="SimplifyBooleanReturn"/>
 
153
 
 
154
        <!-- Checks for class design                         -->
 
155
        <!-- See http://checkstyle.sf.net/config_design.html -->
 
156
        <!--<module name="DesignForExtension"/>-->
 
157
        <module name="FinalClass"/>
 
158
        <module name="HideUtilityClassConstructor"/>
 
159
        <module name="InterfaceIsType"/>
 
160
        <module name="VisibilityModifier"/>
 
161
 
 
162
 
 
163
        <!-- Miscellaneous other checks.                   -->
 
164
        <!-- See http://checkstyle.sf.net/config_misc.html -->
 
165
        <module name="ArrayTypeStyle"/>
 
166
        <!-- <module name="FinalParameters"/> -->
 
167
        <module name="GenericIllegalRegexp">
 
168
            <property name="format" value="\s+$"/>
 
169
            <property name="message" value="Line has trailing spaces."/>
 
170
        </module>
 
171
        <module name="TodoComment"/>
 
172
        <module name="UpperEll"/>
 
173
 
 
174
    </module>
 
175
 
 
176
</module>