1 <?xml version="1.0" encoding="UTF-8"?>
   2 <!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.3//EN" "http://www.puppycrawl.com/dtds/configuration_1_3.dtd">
   3 
   4 <!--
   5     This configuration file was written by the eclipse-cs plugin configuration editor
   6 -->
   7 <!--
   8     Checkstyle-Configuration: Checks
   9     Description: none
  10 -->
  11 <module name="Checker">
  12   <property name="severity" value="error"/>
  13   <module name="TreeWalker">
  14     <module name="AvoidStarImport">
  15       <property name="allowClassImports" value="false"/>
  16       <property name="allowStaticMemberImports" value="false"/>
  17     </module>
  18     <property name="tabWidth" value="4"/>
  19     <module name="FileContentsHolder"/>
  20     <module name="JavadocStyle">
  21       <property name="checkHtml" value="false"/>
  22     </module>
  23     <module name="LocalFinalVariableName"/>
  24     <module name="LocalVariableName"/>
  25     <module name="MemberName">
  26       <property name="format" value="^(([a-z][a-zA-Z0-9]*$)|(_[A-Z][a-zA-Z0-9]*_[a-z][a-zA-Z0-9]*$))"/>
  27     </module>
  28     <module name="MethodName"/>
  29     <module name="PackageName"/>
  30     <module name="ParameterName"/>
  31     <module name="TypeName">
  32       <property name="format" value="^[A-Z][_a-zA-Z0-9]*$"/>
  33     </module>
  34     <module name="RedundantImport"/>
  35     <module name="LineLength">
  36       <property name="max" value="250"/>
  37     </module>
  38     <module name="MethodParamPad"/>
  39     <module name="NoWhitespaceAfter">
  40       <property name="tokens" value="ARRAY_INIT,BNOT,DEC,DOT,INC,LNOT,UNARY_MINUS,UNARY_PLUS"/>
  41     </module>
  42     <module name="NoWhitespaceBefore">
  43       <property name="tokens" value="SEMI,DOT,POST_DEC,POST_INC"/>
  44     </module>
  45     <module name="ParenPad"/>
  46     <module name="TypecastParenPad">
  47       <property name="tokens" value="RPAREN,TYPECAST"/>
  48     </module>
  49     <module name="WhitespaceAfter"/>
  50     <module name="WhitespaceAround">
  51       <property name="tokens" value="ASSIGN,BAND,BAND_ASSIGN,BOR,BOR_ASSIGN,BSR,BSR_ASSIGN,BXOR,BXOR_ASSIGN,COLON,DIV,DIV_ASSIGN,EQUAL,GE,GT,LAND,LE,LITERAL_ASSERT,LITERAL_CATCH,LITERAL_DO,LITERAL_ELSE,LITERAL_FINALLY,LITERAL_FOR,LITERAL_IF,LITERAL_RETURN,LITERAL_SYNCHRONIZED,LITERAL_TRY,LITERAL_WHILE,LOR,LT,MINUS,MINUS_ASSIGN,MOD,MOD_ASSIGN,NOT_EQUAL,PLUS,PLUS_ASSIGN,QUESTION,SL,SLIST,SL_ASSIGN,SR,SR_ASSIGN,STAR,STAR_ASSIGN,LITERAL_ASSERT,TYPE_EXTENSION_AND"/>
  52     </module>
  53     <module name="RedundantModifier"/>
  54     <module name="AvoidNestedBlocks">
  55       <property name="allowInSwitchCase" value="true"/>
  56     </module>
  57     <module name="EmptyBlock">
  58       <property name="option" value="text"/>
  59       <property name="tokens" value="LITERAL_DO,LITERAL_ELSE,LITERAL_FINALLY,LITERAL_IF,LITERAL_TRY,LITERAL_WHILE,STATIC_INIT"/>
  60     </module>
  61     <module name="LeftCurly"/>
  62     <module name="NeedBraces"/>
  63     <module name="RightCurly"/>
  64     <module name="EmptyStatement"/>
  65     <module name="HiddenField">
  66       <property name="severity" value="ignore"/>
  67       <property name="ignoreConstructorParameter" value="true"/>
  68       <metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/>
  69     </module>
  70     <module name="FinalClass"/>
  71     <module name="HideUtilityClassConstructor">
  72       <property name="severity" value="ignore"/>
  73       <metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/>
  74     </module>
  75     <module name="ArrayTypeStyle"/>
  76     <module name="UpperEll"/>
  77     <module name="FallThrough"/>
  78     <module name="FinalLocalVariable">
  79       <property name="severity" value="ignore"/>
  80       <metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/>
  81     </module>
  82     <module name="MultipleVariableDeclarations"/>
  83     <module name="StringLiteralEquality">
  84       <property name="severity" value="error"/>
  85     </module>
  86     <module name="SuperFinalize"/>
  87     <module name="UnnecessaryParentheses">
  88       <property name="severity" value="ignore"/>
  89       <metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/>
  90     </module>
  91     <module name="Indentation">
  92       <property name="severity" value="ignore"/>
  93       <metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/>
  94     </module>
  95     <module name="StaticVariableName">
  96       <property name="format" value="^[A-Za-z][a-zA-Z0-9]*$"/>
  97     </module>
  98     <module name="EmptyForInitializerPad"/>
  99     <module name="EmptyForIteratorPad"/>
 100     <module name="ModifierOrder"/>
 101     <module name="DefaultComesLast"/>
 102     <module name="InnerAssignment">
 103       <property name="severity" value="ignore"/>
 104       <metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/>
 105     </module>
 106     <module name="ModifiedControlVariable"/>
 107     <module name="MutableException">
 108       <property name="severity" value="ignore"/>
 109       <metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/>
 110     </module>
 111     <module name="ParameterAssignment">
 112       <property name="severity" value="ignore"/>
 113       <metadata name="net.sf.eclipsecs.core.lastEnabledSeverity" value="inherit"/>
 114     </module>
 115     <module name="RegexpSinglelineJava">
 116       <metadata name="net.sf.eclipsecs.core.comment" value="Illegal trailing whitespace(s) at the end of the line."/>
 117       <property name="format" value="\s$"/>
 118       <property name="message" value="Illegal trailing whitespace(s) at the end of the line."/>
 119       <property name="ignoreComments" value="true"/>
 120       <metadata name="com.atlassw.tools.eclipse.checkstyle.comment" value="Checks for trailing spaces at the end of a line"/>
 121     </module>
 122     <module name="RegexpSinglelineJava">
 123       <metadata name="net.sf.eclipsecs.core.comment" value="illegal space before a comma"/>
 124       <property name="format" value=" ,"/>
 125       <property name="message" value="illegal space before a comma"/>
 126       <property name="ignoreComments" value="true"/>
 127       <metadata name="com.atlassw.tools.eclipse.checkstyle.comment" value="Checks for whitespace before a comma."/>
 128       <metadata name="com.atlassw.tools.eclipse.checkstyle.customMessage" value="Illegal whitespace before a comma."/>
 129     </module>
 130     <module name="RegexpSinglelineJava">
 131       <property name="format" value="[^\x00-\x7F]"/>
 132       <property name="message" value="Only use ASCII characters."/>
 133     </module>
 134     <module name="RegexpSinglelineJava">
 135       <property name="format" value="new (Hashtable|Vector|Stack|StringBuffer)[^\w]"/>
 136       <property name="message" value="Don't use old synchronized collection classes"/>
 137     </module>
 138     <module name="RegexpSinglelineJava">
 139       <property name="format" value="instanceof MoveOp"/>
 140       <property name="message" value="Do not use `op instanceof MoveOp`. Use `MoveOp.isMoveOp(op)` instead!"/>
 141     </module>
 142     <module name="RegexpSinglelineJava">
 143       <property name="format" value="instanceof ValueMoveOp"/>
 144       <property name="message" value="Do not use `op instanceof ValueMoveOp`. Use `ValueMoveOp.isValueMoveOp(op)` instead!"/>
 145     </module>
 146     <module name="RegexpSinglelineJava">
 147       <property name="format" value="instanceof LoadConstantOp"/>
 148       <property name="message" value="Do not use `op instanceof LoadConstantOp`. Use `LoadConstantOp.isLoadConstantOp(op)` instead!"/>
 149     </module>
 150     <module name="RegexpSinglelineJava">
 151       <property name="format" value="\(MoveOp\)"/>
 152       <property name="message" value="Do not cast directly to `MoveOp`. Use `MoveOp.asMoveOp(op)` instead!"/>
 153     </module>
 154     <module name="RegexpSinglelineJava">
 155       <property name="format" value="\(ValueMoveOp\)"/>
 156       <property name="message" value="Do not cast directly to `ValueMoveOp`. Use `ValueMoveOp.asValueMoveOp(op)` instead!"/>
 157     </module>
 158     <module name="RegexpSinglelineJava">
 159       <property name="format" value="\(LoadConstantOp\)"/>
 160       <property name="message" value="Do not cast directly to `LoadConstantOp`. Use `LoadConstantOp.asLoadConstantOp(op)` instead!"/>
 161     </module>
 162   </module>
 163   <module name="RegexpHeader">
 164     <property name="header" value="/\*\n \* Copyright \(c\) (20[0-9][0-9], )?20[0-9][0-9], Oracle and/or its affiliates. All rights reserved.\n \* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.\n \*\n \* This code is free software; you can redistribute it and/or modify it\n \* under the terms of the GNU General Public License version 2 only, as\n \* published by the Free Software Foundation.  Oracle designates this\n \* particular file as subject to the &quot;Classpath&quot; exception as provided\n \* by Oracle in the LICENSE file that accompanied this code.\n \*\n \* This code is distributed in the hope that it will be useful, but WITHOUT\n \* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or\n \* FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License\n \* version 2 for more details \(a copy is included in the LICENSE file that\n \* accompanied this code\).\n \*\n \* You should have received a copy of the GNU General Public License version\n \* 2 along with this work; if not, write to the Free Software Foundation,\n \* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.\n \*\n \* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA\n \* or visit www.oracle.com if you need additional information or have any\n \* questions.\n \*/\n"/>
 165     <property name="fileExtensions" value="java"/>
 166   </module>
 167   <module name="FileTabCharacter">
 168     <property name="severity" value="error"/>
 169     <property name="fileExtensions" value="java"/>
 170   </module>
 171   <module name="NewlineAtEndOfFile">
 172     <property name="lineSeparator" value="lf"/>
 173   </module>
 174   <module name="Translation"/>
 175   <module name="SuppressionCommentFilter">
 176     <property name="offCommentFormat" value="Checkstyle: stop constant name check"/>
 177     <property name="onCommentFormat" value="Checkstyle: resume constant name check"/>
 178     <property name="checkFormat" value="ConstantNameCheck"/>
 179     <metadata name="com.atlassw.tools.eclipse.checkstyle.comment" value="Allow non-conforming constant names"/>
 180   </module>
 181   <module name="SuppressionCommentFilter">
 182     <property name="offCommentFormat" value="Checkstyle: stop method name check"/>
 183     <property name="onCommentFormat" value="Checkstyle: resume method name check"/>
 184     <property name="checkFormat" value="MethodName"/>
 185     <property name="checkC" value="false"/>
 186     <metadata name="com.atlassw.tools.eclipse.checkstyle.comment" value="Disable method name checks"/>
 187   </module>
 188   <module name="SuppressionCommentFilter">
 189     <property name="offCommentFormat" value="CheckStyle: stop parameter assignment check"/>
 190     <property name="onCommentFormat" value="CheckStyle: resume parameter assignment check"/>
 191     <property name="checkFormat" value="ParameterAssignment"/>
 192     <property name="checkC" value="false"/>
 193     <metadata name="com.atlassw.tools.eclipse.checkstyle.comment" value="Disable Parameter Assignment"/>
 194   </module>
 195   <module name="SuppressionCommentFilter">
 196     <property name="offCommentFormat" value="Checkstyle: stop final variable check"/>
 197     <property name="onCommentFormat" value="Checkstyle: resume final variable check"/>
 198     <property name="checkFormat" value="FinalLocalVariable"/>
 199     <metadata name="com.atlassw.tools.eclipse.checkstyle.comment" value="Disable final variable checks"/>
 200   </module>
 201   <module name="SuppressionCommentFilter">
 202     <property name="offCommentFormat" value="Checkstyle: stop"/>
 203     <property name="onCommentFormat" value="Checkstyle: resume"/>
 204     <metadata name="com.atlassw.tools.eclipse.checkstyle.comment" value="Disable all checks"/>
 205   </module>
 206   <module name="SuppressionCommentFilter">
 207     <property name="offCommentFormat" value="CheckStyle: stop inner assignment check"/>
 208     <property name="onCommentFormat" value="CheckStyle: resume inner assignment check"/>
 209     <property name="checkFormat" value="InnerAssignment"/>
 210     <metadata name="com.atlassw.tools.eclipse.checkstyle.comment" value="Disable inner assignment checks"/>
 211   </module>
 212   <module name="SuppressionCommentFilter">
 213     <property name="offCommentFormat" value="Checkstyle: stop field name check"/>
 214     <property name="onCommentFormat" value="Checkstyle: resume field name check"/>
 215     <property name="checkFormat" value="MemberName"/>
 216     <property name="checkC" value="false"/>
 217     <metadata name="com.atlassw.tools.eclipse.checkstyle.comment" value="Disable field name checks"/>
 218   </module>
 219   <module name="RegexpMultiline">
 220     <metadata name="net.sf.eclipsecs.core.comment" value="illegal Windows line ending"/>
 221     <property name="format" value="\r\n"/>
 222     <property name="message" value="illegal Windows line ending"/>
 223   </module>
 224   <module name="SuppressionCommentFilter">
 225     <property name="offCommentFormat" value="CheckStyle: stop header check"/>
 226     <property name="onCommentFormat" value="CheckStyle: resume header check"/>
 227     <property name="checkFormat" value=".*Header"/>
 228     <metadata name="com.atlassw.tools.eclipse.checkstyle.comment" value="Disable header checks"/>
 229   </module>
 230   <module name="SuppressionCommentFilter">
 231     <property name="offCommentFormat" value="CheckStyle: stop line length check"/>
 232     <property name="onCommentFormat" value="CheckStyle: resume line length check"/>
 233     <property name="checkFormat" value="LineLength"/>
 234   </module>
 235   <module name="SuppressionCommentFilter">
 236     <property name="offCommentFormat" value="CheckStyle: start generated"/>
 237     <property name="onCommentFormat" value="CheckStyle: stop generated"/>
 238     <property name="checkFormat" value=".*Name|.*LineLength|.*Header"/>
 239   </module>
 240 </module>