checkstyle.xml
author marseille
Fri, 24 Apr 2009 01:59:28 +0200
changeset 166 d076437706a4
parent 40 abf9da283377
child 337 9ff7cb885f94
permissions -rw-r--r--
La connection a talk.google.com is OK ! Horizontal and vertical view are acceptable . Upgrade the Send IM view with log in file.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
32
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
     1
<?xml version="1.0"?>
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
     2
<!DOCTYPE module PUBLIC
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
     3
    "-//Puppy Crawl//DTD Check Configuration 1.2//EN"
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
     4
    "http://www.puppycrawl.com/dtds/configuration_1_2.dtd">
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
     5
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
     6
<!--
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
     7
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
     8
  Checkstyle configuration that checks the sun coding conventions from:
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
     9
33
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
    10
  - the Java Language Specification at
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
    11
  http://java.sun.com/docs/books/jls/second_edition/html/index.html
32
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    12
33
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
    13
  - the Sun Code Conventions at http://java.sun.com/docs/codeconv/
32
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    14
33
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
    15
  - the Javadoc guidelines at
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
    16
  http://java.sun.com/j2se/javadoc/writingdoccomments/index.html
32
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    17
33
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
    18
  - the JDK Api documentation http://java.sun.com/j2se/docs/api/index.html
32
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    19
33
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
    20
  - some best practices
32
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    21
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    22
  Checkstyle is very configurable. Be sure to read the documentation at
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    23
  http://checkstyle.sf.net (or in your downloaded distribution).
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    24
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    25
  Most Checks are configurable, be sure to consult the documentation.
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    26
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    27
  To completely disable a check, just comment it out or delete it from the file.
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    28
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    29
  Finally, it is worth reading the documentation.
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    30
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    31
-->
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    32
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    33
<module name="Checker">
40
abf9da283377 Tite modification du checkstyle.xml
Da Risk <darisk972@gmail.com>
parents: 38
diff changeset
    34
    <property name="severity" value="warning"/>
32
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    35
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    36
    <!-- Checks that a package.html file exists for each package.     -->
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    37
    <!-- See http://checkstyle.sf.net/config_javadoc.html#PackageHtml -->
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    38
    <module name="PackageHtml"/>
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    39
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    40
    <!-- Checks whether files end with a new line.                        -->
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    41
    <!-- See http://checkstyle.sf.net/config_misc.html#NewlineAtEndOfFile -->
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    42
    <module name="NewlineAtEndOfFile"/>
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    43
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    44
    <!-- Checks that property files contain the same keys.         -->
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    45
    <!-- See http://checkstyle.sf.net/config_misc.html#Translation -->
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    46
    <module name="Translation"/>
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    47
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    48
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    49
    <module name="TreeWalker">
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    50
33
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
    51
	<!-- Checks for Javadoc comments.                     -->
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
    52
	<!-- See http://checkstyle.sf.net/config_javadoc.html -->
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
    53
	<module name="JavadocMethod">
32
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    54
	    <property name="allowUndeclaredRTE" value="true"/>
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    55
	</module>
33
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
    56
	<module name="JavadocType"/>
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
    57
	<module name="JavadocVariable">
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
    58
	    <property name="scope" value="package" />
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
    59
	</module>
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
    60
	<module name="JavadocStyle">
32
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    61
	    <property name="checkEmptyJavadoc" value="true"/>
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    62
	</module>
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    63
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    64
33
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
    65
	<!-- Checks for Naming Conventions.                  -->
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
    66
	<!-- See http://checkstyle.sf.net/config_naming.html -->
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
    67
	<module name="ConstantName"/>
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
    68
	<module name="LocalFinalVariableName"/>
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
    69
	<module name="LocalVariableName"/>
32
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    70
	<module name="MemberName">
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    71
	    <property  name="format" value="^m[A-Z][a-zA-Z0-9]*$"/>
40
abf9da283377 Tite modification du checkstyle.xml
Da Risk <darisk972@gmail.com>
parents: 38
diff changeset
    72
	    <property name="severity" value="error"/>
32
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    73
	</module>
33
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
    74
	<module name="MethodName"/>
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
    75
	<module name="PackageName"/>
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
    76
	<module name="ParameterName"/>
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
    77
	<module name="StaticVariableName"/>
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
    78
	<module name="TypeName"/>
32
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    79
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    80
33
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
    81
	<!-- Checks for Headers                                -->
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
    82
	<!-- See http://checkstyle.sf.net/config_header.html   -->
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
    83
	<!-- <module name="Header">                            -->
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
    84
	<!-- The follow property value demonstrates the ability     -->
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
    85
	<!-- to have access to ANT properties. In this case it uses -->
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
    86
	<!-- the ${basedir} property to allow Checkstyle to be run  -->
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
    87
	<!-- from any directory within a project. See property      -->
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
    88
	<!-- expansion,                                             -->
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
    89
	<!-- http://checkstyle.sf.net/config.html#properties        -->
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
    90
	<!-- <property                                              -->
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
    91
	<!--     name="headerFile"                                  -->
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
    92
	<!--     value="${basedir}/java.header"/>                   -->
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
    93
	<!-- </module> -->
32
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    94
33
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
    95
	<!-- Following interprets the header file as regular expressions. -->
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
    96
	<!-- <module name="RegexpHeader"/>                                -->
32
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    97
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
    98
33
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
    99
	<!-- Checks for imports                              -->
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
   100
	<!-- See http://checkstyle.sf.net/config_import.html -->
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
   101
	<module name="AvoidStarImport"/>
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
   102
	<module name="IllegalImport"/> <!-- defaults to sun.* packages -->
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
   103
	<module name="RedundantImport"/>
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
   104
	<module name="UnusedImports"/>
32
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
   105
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
   106
33
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
   107
	<!-- Checks for Size Violations.                    -->
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
   108
	<!-- See http://checkstyle.sf.net/config_sizes.html -->
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
   109
	<module name="FileLength"/>
32
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
   110
	<module name="LineLength">
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
   111
	    <property name="max" value="120" />
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
   112
	</module>
33
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
   113
	<module name="MethodLength"/>
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
   114
	<module name="ParameterNumber"/>
32
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
   115
	<module name="AnonInnerLength">
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
   116
	    <property name="max" value="60" />
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
   117
	</module>
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
   118
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
   119
33
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
   120
	<!-- Checks for whitespace                               -->
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
   121
	<!-- See http://checkstyle.sf.net/config_whitespace.html -->
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
   122
	<module name="EmptyForIteratorPad"/>
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
   123
	<module name="MethodParamPad"/>
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
   124
	<module name="NoWhitespaceAfter"/>
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
   125
	<module name="NoWhitespaceBefore"/>
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
   126
	<module name="OperatorWrap"/>
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
   127
	<module name="ParenPad"/>
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
   128
	<module name="TypecastParenPad"/>
32
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
   129
	<!-- We want mixed tabulation
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
   130
	  <module name="TabCharacter"/> 
33
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
   131
	  -->
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
   132
	<module name="WhitespaceAfter"/>
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
   133
	<module name="WhitespaceAround"/>
32
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
   134
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
   135
33
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
   136
	<!-- Modifier Checks                                    -->
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
   137
	<!-- See http://checkstyle.sf.net/config_modifiers.html -->
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
   138
	<module name="ModifierOrder"/>
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
   139
	<module name="RedundantModifier"/>
32
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
   140
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
   141
33
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
   142
	<!-- Checks for blocks. You know, those {}'s         -->
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
   143
	<!-- See http://checkstyle.sf.net/config_blocks.html -->
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
   144
	<module name="AvoidNestedBlocks"/>
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
   145
	<module name="EmptyBlock"/>
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
   146
	<module name="LeftCurly"/>
32
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
   147
	<!--
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
   148
	  <module name="NeedBraces"/>
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
   149
	  -->
33
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
   150
	<module name="RightCurly"/>
32
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
   151
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
   152
33
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
   153
	<!-- Checks for common coding problems               -->
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
   154
	<!-- See http://checkstyle.sf.net/config_coding.html -->
32
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
   155
	<module name="CovariantEquals"/>
33
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
   156
	<module name="AvoidInlineConditionals"/>
32
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
   157
	<module name="InnerAssignment" />
33
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
   158
	<module name="DoubleCheckedLocking"/>    <!-- MY FAVOURITE -->
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
   159
	<module name="EmptyStatement"/>
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
   160
	<module name="EqualsHashCode"/>
32
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
   161
	<module name="HiddenField">
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
   162
	    <property name="ignoreConstructorParameter" value="true"/>
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
   163
	    <property name="ignoreAbstractMethods" value="true"/>
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
   164
	    <property name="ignoreSetter" value="true"/>
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
   165
	</module>
33
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
   166
	<module name="IllegalInstantiation"/>
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
   167
	<module name="InnerAssignment"/>
32
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
   168
	<!--
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
   169
	  <module name="MagicNumber"/>
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
   170
	  -->
33
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
   171
	<module name="MissingSwitchDefault"/>
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
   172
	<module name="RedundantThrows"/>
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
   173
	<module name="SimplifyBooleanExpression"/>
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
   174
	<module name="SimplifyBooleanReturn"/>
32
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
   175
	<module name="StringLiteralEquality"/>
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
   176
	<module name="SuperFinalize"/>
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
   177
	<module name="IllegalCatch"/>
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
   178
	<module name="IllegalThrows"/>
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
   179
	<module name="PackageDeclaration"/>
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
   180
	<module name="JUnitTestCase"/>
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
   181
	<module name="DeclarationOrder"/>
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
   182
	<module name="ExplicitInitialization"/>
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
   183
	<module name="DefaultComesLast"/>
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
   184
	<module name="MissingCtor"/>
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
   185
	<module name="FallThrough"/>
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
   186
	<module name="MultipleStringLiterals"/>
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
   187
	<module name="MultipleVariableDeclarations"/>
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
   188
	<module name="UnnecessaryParentheses"/>
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
   189
	<module name="ParameterAssignment"/>
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
   190
	<module name="SuperClone"/>
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
   191
33
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
   192
	<!-- Checks for class design                         -->
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
   193
	<!-- See http://checkstyle.sf.net/config_design.html -->
38
3e76846c48a9 We can now get the contact list of the user.
Da Risk <darisk972@gmail.com>
parents: 33
diff changeset
   194
	<!-- 
3e76846c48a9 We can now get the contact list of the user.
Da Risk <darisk972@gmail.com>
parents: 33
diff changeset
   195
	  <module name="DesignForExtension"/>
3e76846c48a9 We can now get the contact list of the user.
Da Risk <darisk972@gmail.com>
parents: 33
diff changeset
   196
	  -->
33
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
   197
	<module name="FinalClass"/>
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
   198
	<module name="HideUtilityClassConstructor"/>
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
   199
	<module name="InterfaceIsType"/>
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
   200
	<module name="VisibilityModifier"/>
32
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
   201
	<module name="MutableException"/>
33
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
   202
32
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
   203
33
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
   204
	<!-- Miscellaneous other checks.                   -->
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
   205
	<!-- See http://checkstyle.sf.net/config_misc.html -->
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
   206
	<module name="ArrayTypeStyle"/>
32
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
   207
	<module name="FinalParameters">
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
   208
	    <property name="tokens" value="CTOR_DEF"/>
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
   209
	</module>
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
   210
	<module name="Indentation"/>
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
   211
33
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
   212
	<module name="GenericIllegalRegexp">
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
   213
	    <property name="format" value="\s+$"/>
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
   214
	    <property name="message" value="Line has trailing spaces."/>
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
   215
	</module>
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
   216
	<module name="TodoComment"/>
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
   217
	<module name="UpperEll"/>
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
   218
32
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
   219
	<module name="BooleanExpressionComplexity"/>
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
   220
	<module name="UpperEll"/>
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
   221
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
   222
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
   223
	<module name="ArrayTypeStyle"/>
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
   224
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
   225
    </module>
33
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
   226
    <module name="StrictDuplicateCode"/>
0e65d5f55d2f Merge with ui. Synchronous connection worked.
Da Risk <darisk972@gmail.com>
parents: 32
diff changeset
   227
    <module name="NewlineAtEndOfFile"/>
32
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
   228
4d26854143e2 Add checkstyle
Da Risk <darisk972@gmail.com>
parents:
diff changeset
   229
</module>