<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.3//EN" "http://www.puppycrawl.com/dtds/configuration_1_3.dtd">
<!-- see checkstyle.hg.sourceforge.net/hgweb/checkstyle/checkstyle/raw-file/445322c30474/sun_checks.xml -->
<module name="Checker">
  <property name="severity" value="warning"/>

  <!--module name="SuppressionFilter">
    <property name="file" value="supressions.xml"/>
  </module-->

  <!-- Checks that a package-info.java file exists for each package.     -->
  <!-- See http://checkstyle.sf.net/config_javadoc.html#JavadocPackage -->
  <!-- <module name="JavadocPackage"/> not used -->

  <!-- Checks whether files end with a new line.                        -->
  <!-- See http://checkstyle.sf.net/config_misc.html#NewlineAtEndOfFile -->
  <module name="NewlineAtEndOfFile">
    <property name="lineSeparator" value="lf"/>
  </module>

  <!-- Checks that property files contain the same keys.         -->
  <!-- See http://checkstyle.sf.net/config_misc.html#Translation -->
  <!-- <module name="Translation"/> not used -->

  <!-- Checks for Headers                              -->
  <!-- See http://checkstyle.sf.net/config_header.html -->
  <module name="RegexpHeader">
    <property name="header"
              value="^/\*\*$\n^ \* Copyright \d\d\d\d Liberty Global.+$\n^ \*/$"/>
  </module>

  <!-- Checks for Size Violations.                    -->
  <!-- See http://checkstyle.sf.net/config_sizes.html -->
  <module name="FileLength"/>

  <!-- Checks for whitespace                               -->
  <!-- See http://checkstyle.sf.net/config_whitespace.html -->
  <module name="FileTabCharacter">
    <property name="eachLine" value="true"/>
  </module>

  <!-- Miscellaneous other checks.                   -->
  <!-- See http://checkstyle.sf.net/config_misc.html -->
  <module name="RegexpSingleline">
    <property name="format" value="\s+$"/>
    <property name="minimum" value="0"/>
    <property name="maximum" value="0"/>
    <property name="message" value="Line has trailing spaces."/>
  </module>

  <!-- Checks for Duplicates                                -->
  <!-- See http://checkstyle.sf.net/config_dusplicates.html -->
  <module name="StrictDuplicateCode"/>

  <module name="TreeWalker">
    <property name="tabWidth" value="4"/>

    <!-- Checks for Annotations                              -->
    <!-- See http://checkstyle.sf.net/config_annotation.html -->
    <module name="AnnotationUseStyle"/>
    <module name="MissingDeprecated"/>
    <module name="MissingOverride"/>
    <module name="PackageAnnotation"/>
    <module name="SuppressWarnings"/>


    <!-- Checks for Blocks                               -->
    <!-- See http://checkstyle.sf.net/config_blocks.html -->
    <module name="EmptyBlock"/>
    <module name="LeftCurly"/>
    <module name="NeedBraces"/>
    <module name="RightCurly"/>
    <module name="AvoidNestedBlocks"/>


    <!-- Checks for Class Design                         -->
    <!-- See http://checkstyle.sf.net/config_design.html -->
    <module name="VisibilityModifier"/>
    <module name="FinalClass"/>
    <module name="InterfaceIsType"/>
    <module name="HideUtilityClassConstructor"/>
    <!-- <module name="DesignForExtension"/> not required - too OTT -->
    <!-- <module name="MutableException"/> allowing -->
    <!-- <module name="ThrowsCount"/> allowing -->
    <!-- <module name="InnerTypeLast"/> allowing -->


    <!-- Checks for Coding                               -->
    <!-- See http://checkstyle.sf.net/config_coding.html -->
    <!-- <module name="ArrayTrailingComma"/> allowing -->
    <!-- <module name="AvoidInlineConditionals"/> allowing -->
    <module name="CovariantEquals"/>
    <module name="DoubleCheckedLocking"/>
    <module name="EmptyStatement"/>
    <module name="EqualsAvoidNull"/>
    <module name="EqualsHashCode"/>
    <!-- <module name="FinalLocalVariable"/> allowing -->
    <!-- <module name="HiddenField"/> allowing -->
    <module name="IllegalInstantiation">
      <property name="classes" value="java.lang.Boolean"/>
    </module>
    <!-- <module name="IllegalToken"/> allowing -->
    <!-- <module name="IllegalTokenText"/> allowing -->
    <module name="InnerAssignment"/>
    <!-- <module name="MagicNumber"/> allowing -->
    <module name="MissingSwitchDefault"/>
    <module name="RedundantThrows"/>
    <module name="SimplifyBooleanExpression"/>
    <module name="SimplifyBooleanReturn"/>
    <module name="StringLiteralEquality"/>
    <!--module name="NestedForDepth">   NOT WORKING with ECLIPSE-CS 5.2
      <property name="max" value="3"/>
    </module-->
    <module name="NestedIfDepth">
      <property name="max" value="3"/>
    </module>
    <module name="NestedTryDepth">
      <property name="max" value="3"/>
    </module>
    <module name="NoClone"/>
    <module name="NoFinalizer"/>
    <module name="SuperClone"/>
    <module name="SuperFinalize"/>
    <module name="IllegalCatch"/>
    <module name="IllegalThrows"/>
    <module name="PackageDeclaration"/>
    <!-- <module name="ReturnCount"/> allowing -->
    <module name="IllegalType"/>
    <!-- <module name="DeclarationOrder"/> allowing -->
    <!-- <module name="ParameterAssignment"/> allowing -->
    <module name="ExplicitInitialization"/>
    <module name="DefaultComesLast"/>
    <module name="MissingCtor"/>
    <!-- <module name="FallThrough"/> allowing -->
    <module name="MultipleStringLiterals">
      <property name="allowedDuplicates" value="2"/>
    </module>
    <module name="MultipleVariableDeclarations"/>
    <!-- <module name="RequireThis"/> allowing -->
    <module name="UnnecessaryParentheses"/>
    <!--<module name="OneStatementPerLine"/>  NOT WORKING with ECLIPSE-CS 5.2 -->


    <!-- Checks for Imports                               -->
    <!-- See http://checkstyle.sf.net/config_imports.html -->
    <module name="AvoidStarImport"/>
    <module name="AvoidStaticImport"/>
    <module name="IllegalImport"/>
    <module name="RedundantImport"/>
    <module name="UnusedImports"/>


    <!-- Checks for Javadoc comments.                     -->
    <!-- See http://checkstyle.sf.net/config_javadoc.html -->
    <module name="JavadocMethod">
      <property name="scope" value="public"/>
      <property name="allowUndeclaredRTE" value="true"/>
    </module>
    <module name="JavadocType">
      <property name="scope" value="public"/>
    </module>
    <module name="JavadocVariable">
      <property name="scope" value="public"/>
    </module>
    <module name="JavadocStyle">
      <property name="scope" value="public"/>
    </module>


    <!-- Checks for Metrics                               -->
    <!-- See http://checkstyle.sf.net/config_metrics.html -->
    <module name="BooleanExpressionComplexity"/>
    <module name="ClassDataAbstractionCoupling"/>
    <module name="ClassFanOutComplexity"/>
    <module name="CyclomaticComplexity"/>
    <module name="NPathComplexity"/>
    <module name="JavaNCSS"/>


    <!-- Checks for Misc                               -->
    <!-- See http://checkstyle.sf.net/config_misc.html -->
    <!-- <module name="TodoComment"/> other tools use this -->
    <module name="UncommentedMain"/>
    <module name="UpperEll"/>
    <module name="ArrayTypeStyle"/>
    <!-- <module name="FinalParameters"/> allowing -->


    <!-- Checks for Modifiers                              -->
    <!-- See http://checkstyle.sf.net/config_modifier.html -->
    <module name="ModifierOrder"/>
    <module name="RedundantModifier"/>


    <!-- Checks for Naming Conventions.                  -->
    <!-- See http://checkstyle.sf.net/config_naming.html -->
    <!-- <module name="AbstractClassName"/> not enforced -->
    <module name="ClassTypeParameterName"/>
    <module name="ConstantName"/>
    <module name="LocalFinalVariableName"/>
    <module name="LocalVariableName"/>
    <module name="MemberName"/>
    <module name="MethodName"/>
    <module name="PackageName"/>
    <module name="ParameterName"/>
    <module name="StaticVariableName"/>
    <module name="TypeName"/>


    <!-- Checks for Sizes                               -->
    <!-- See http://checkstyle.sf.net/config_sizes.html -->
    <module name="LineLength">
      <property name="max" value="120"/>
      <property name="ignorePattern" value="^ *\* *[^ ]+$"/>
    </module>
    <module name="MethodLength">
      <property name="tokens" value="METHOD_DEF"/>
      <property name="max" value="50"/>
      <property name="countEmpty" value="false"/>
    </module>
    <module name="MethodLength">
      <property name="tokens" value="CTOR_DEF"/>
      <property name="max" value="30"/>
      <property name="countEmpty" value="false"/>
    </module>
    <module name="AnonInnerLength"/>
    <module name="ParameterNumber"/>
    <module name="OuterTypeNumber"/>
    <!--<module name="MethodCount"/>  NOT WORKING with ECLIPSE-CS 5.2 -->


    <!-- Checks for Whitespace                               -->
    <!-- See http://checkstyle.sf.net/config_whitespace.html -->
    <module name="GenericWhitespace"/>
    <module name="EmptyForInitializerPad"/>
    <module name="EmptyForIteratorPad"/>
    <module name="MethodParamPad"/>
    <module name="NoWhitespaceAfter"/>
    <module name="NoWhitespaceBefore"/>
    <module name="OperatorWrap"/>
    <module name="ParenPad"/>
    <module name="TypecastParenPad"/>
    <module name="WhitespaceAfter"/>
    <module name="WhitespaceAround"/>

  </module>
</module>

