diff options
-rw-r--r-- | checkstyle.cfg | 88 | ||||
-rw-r--r-- | checkstyle3.1.1-head | 334 |
2 files changed, 0 insertions, 422 deletions
diff --git a/checkstyle.cfg b/checkstyle.cfg deleted file mode 100644 index 9edb4b5be..000000000 --- a/checkstyle.cfg +++ /dev/null @@ -1,88 +0,0 @@ -# $Id$ - -# Checkstyle configuration for the Apache FOP project. -# See http://xml.apache.org/fop for information about FOP. -# The entries here are sorted in the order of the Checkstyle 2.4 documentation -# for easier reference. - -# Javadoc Comments -checkstyle.javadoc.scope = protected -checkstyle.require.packagehtml = false -checkstyle.require.version = false -checkstyle.allow.noauthor = yes -checkstyle.javadoc.checkUnusedThrows = false - -# Naming Conventions -# non-static members -checkstyle.pattern.member = ^[a-z][a-zA-Z0-9]*$ -# non-static, public members -checkstyle.pattern.publicmember = ^[a-z][a-zA-Z0-9]*$ -# constants (static & final) -checkstyle.pattern.const = ^[A-Z](_?[A-Z0-9]+)*$ -# other static -checkstyle.pattern.static = ^[a-z][a-zA-Z0-9]*$ -# method parameters -checkstyle.pattern.parameter = ^[a-z][a-zA-Z0-9]*$ -# packages -checkstyle.pattern.package = ^[a-z]+(\.[a-zA-Z_][a-zA-Z_0-9]*)*$ -# classes and interfaces -checkstyle.pattern.type = ^[A-Z][a-zA-Z0-9]*$ -# methods -checkstyle.pattern.method = ^[a-z][a-zA-Z0-9]*$ -# local variables -checkstyle.pattern.localvar = ^[a-z][a-zA-Z0-9]*$ -# final local variables -checkstyle.pattern.localfinalvar = ^[a-z][a-zA-Z0-9]*$ - -# Headers -checkstyle.header.file = checkstyle.header -checkstyle.header.ignoreline -checkstyle.header.regexp = yes - -# Imports -checkstyle.ignore.imports = false -checkstyle.illegal.imports = sun - -# Size Violations -checkstyle.maxlinelen = 100 -checkstyle.tab.width = 4 -checkstyle.ignore.importlength = yes -checkstyle.ignore.maxlinelen = ^$ -checkstyle.maxmethodlen = 150 -checkstyle.maxconstructorlen = 150 -checkstyle.maxfilelen = 2000 -checkstyle.maxparameters = 7 - -# Whitespace -checkstyle.allow.tabs = no -checkstyle.ignore.whitespace = false -checkstyle.ignore.whitespace.cast = yes -checkstyle.paren.pad = nospace -checkstyle.wrap.operator = nl - -# Modifiers -checkstyle.ignore.public.in.interface = false -checkstyle.allow.protected = yes -checkstyle.allow.package = false -# Note -- checkstyle.pattern.publicmember is documented in this location -# in the checkstyle documentation. However, it is also included in the "Naming -# Conventions" section above. Please do not add it here, as having two in the -# file will result in changes to only one being ignored (checkstyle appears to -# use the last definition). - -# Blocks -checkstyle.ignore.braces = false -checkstyle.block.try = stmt -checkstyle.block.catch = text -checkstyle.block.finally = stmt -checkstyle.lcurly.type = eol -checkstyle.lcurly.method = eol -checkstyle.lcurly.other = eol -checkstyle.rcurly = same - -# Miscellaneous Checks -checkstyle.pattern.todo = TODO: -checkstyle.ignore.longell = false -checkstyle.illegal.instantiations = - -# Last Line of $RCSfile$ diff --git a/checkstyle3.1.1-head b/checkstyle3.1.1-head deleted file mode 100644 index dbfcd8b93..000000000 --- a/checkstyle3.1.1-head +++ /dev/null @@ -1,334 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<checkstyle-configurations file-format-version="1.0.0"> - <check-configuration name="head"> - <rule-configuration - classname="com.puppycrawl.tools.checkstyle.checks.JavadocVariableCheck" - severity="warning" comment="Protected scope"> - <config-properties> - <config-property name="severity" value="warning"/> - <config-property name="scope" value="protected"/> - </config-properties> - </rule-configuration> - <rule-configuration - classname="com.puppycrawl.tools.checkstyle.checks.JavadocTypeCheck" - severity="warning" comment="Protected scope"> - <config-properties> - <config-property name="severity" value="warning"/> - <config-property name="tokens" value="CLASS_DEF, INTERFACE_DEF"/> - <config-property name="authorFormat" value=""/> - <config-property name="scope" value="protected"/> - <config-property name="versionFormat" value=""/> - </config-properties> - </rule-configuration> - <rule-configuration - classname="com.puppycrawl.tools.checkstyle.checks.JavadocMethodCheck" - severity="warning" comment="Protected scope"> - <config-properties> - <config-property name="allowThrowsTagsForSubclasses" value="false"/> - <config-property name="allowUndeclaredRTE" value="false"/> - <config-property name="severity" value="warning"/> - <config-property name="tokens" value="METHOD_DEF, CTOR_DEF"/> - <config-property name="allowMissingParamTags" value="false"/> - <config-property name="scope" value="protected"/> - <config-property name="allowMissingReturnTag" value="false"/> - <config-property name="allowMissingThrowsTags" value="false"/> - </config-properties> - </rule-configuration> - <rule-configuration - classname="com.puppycrawl.tools.checkstyle.checks.MemberNameCheck" severity="warning"> - <config-properties> - <config-property name="severity" value="warning"/> - <config-property name="format" value="^[a-z][a-zA-Z0-9]*$"/> - </config-properties> - </rule-configuration> - <rule-configuration - classname="com.puppycrawl.tools.checkstyle.checks.LocalVariableNameCheck" severity="warning"> - <config-properties> - <config-property name="severity" value="warning"/> - <config-property name="format" value="^[a-z][a-zA-Z0-9]*$"/> - </config-properties> - </rule-configuration> - <rule-configuration - classname="com.puppycrawl.tools.checkstyle.checks.LocalFinalVariableNameCheck" severity="warning"> - <config-properties> - <config-property name="severity" value="warning"/> - <config-property name="format" value="^[a-z][a-zA-Z0-9]*$"/> - </config-properties> - </rule-configuration> - <rule-configuration - classname="com.puppycrawl.tools.checkstyle.checks.ConstantNameCheck" severity="warning"> - <config-properties> - <config-property name="severity" value="warning"/> - <config-property name="format" value="^[A-Z](_?[A-Z0-9]+)*$"/> - </config-properties> - </rule-configuration> - <rule-configuration - classname="com.puppycrawl.tools.checkstyle.checks.MethodNameCheck" severity="warning"> - <config-properties> - <config-property name="severity" value="warning"/> - <config-property name="format" value="^[a-z][a-zA-Z0-9]*$"/> - </config-properties> - </rule-configuration> - <rule-configuration - classname="com.puppycrawl.tools.checkstyle.checks.PackageNameCheck" severity="warning"> - <config-properties> - <config-property name="severity" value="warning"/> - <config-property name="format" value="^[a-z]+(\.[a-zA-Z_][a-zA-Z0-9_]*)*$"/> - </config-properties> - </rule-configuration> - <rule-configuration - classname="com.puppycrawl.tools.checkstyle.checks.ParameterNameCheck" severity="warning"> - <config-properties> - <config-property name="severity" value="warning"/> - <config-property name="format" value="^[a-z][a-zA-Z0-9]*$"/> - </config-properties> - </rule-configuration> - <rule-configuration - classname="com.puppycrawl.tools.checkstyle.checks.StaticVariableNameCheck" severity="warning"> - <config-properties> - <config-property name="severity" value="warning"/> - <config-property name="format" value="^[a-z][a-zA-Z0-9]*$"/> - </config-properties> - </rule-configuration> - <rule-configuration - classname="com.puppycrawl.tools.checkstyle.checks.TypeNameCheck" severity="warning"> - <config-properties> - <config-property name="tokens" value="CLASS_DEF, INTERFACE_DEF"/> - <config-property name="severity" value="warning"/> - <config-property name="format" value="^[A-Z][a-zA-Z0-9]*$"/> - </config-properties> - </rule-configuration> - <rule-configuration - classname="com.puppycrawl.tools.checkstyle.checks.FileLengthCheck" severity="warning"> - <config-properties> - <config-property name="severity" value="warning"/> - <config-property name="max" value="2000"/> - </config-properties> - </rule-configuration> - <rule-configuration - classname="com.puppycrawl.tools.checkstyle.checks.LineLengthCheck" - severity="warning" comment="Set to 100 for HEAD"> - <config-properties> - <config-property name="severity" value="warning"/> - <config-property name="tabWidth" value="4"/> - <config-property name="ignorePattern" value="^$"/> - <config-property name="max" value="100"/> - </config-properties> - </rule-configuration> - <rule-configuration - classname="com.puppycrawl.tools.checkstyle.checks.MethodLengthCheck" severity="warning"> - <config-properties> - <config-property name="tokens" value="METHOD_DEF, CTOR_DEF"/> - <config-property name="severity" value="warning"/> - <config-property name="max" value="150"/> - </config-properties> - </rule-configuration> - <rule-configuration - classname="com.puppycrawl.tools.checkstyle.checks.ParameterNumberCheck" severity="warning"> - <config-properties> - <config-property name="tokens" value="METHOD_DEF, CTOR_DEF"/> - <config-property name="severity" value="warning"/> - <config-property name="max" value="7"/> - </config-properties> - </rule-configuration> - <rule-configuration - classname="com.puppycrawl.tools.checkstyle.checks.EmptyForIteratorPadCheck" severity="warning"> - <config-properties> - <config-property name="option" value="nospace"/> - <config-property name="severity" value="warning"/> - </config-properties> - </rule-configuration> - <rule-configuration - classname="com.puppycrawl.tools.checkstyle.checks.NoWhitespaceAfterCheck" severity="warning"> - <config-properties> - <config-property name="allowLineBreaks" value="true"/> - <config-property name="tokens" value="ARRAY_INIT, BNOT, DEC, DOT, INC, LNOT, UNARY_MINUS, UNARY_PLUS"/> - <config-property name="severity" value="warning"/> - </config-properties> - </rule-configuration> - <rule-configuration - classname="com.puppycrawl.tools.checkstyle.checks.NoWhitespaceBeforeCheck" severity="warning"> - <config-properties> - <config-property name="allowLineBreaks" value="true"/> - <config-property name="tokens" value="SEMI, POST_DEC, POST_INC"/> - <config-property name="severity" value="warning"/> - </config-properties> - </rule-configuration> - <rule-configuration - classname="com.puppycrawl.tools.checkstyle.checks.TabCharacterCheck" severity="warning"> - <config-properties> - <config-property name="severity" value="warning"/> - </config-properties> - </rule-configuration> - <rule-configuration - classname="com.puppycrawl.tools.checkstyle.checks.WhitespaceAroundCheck" severity="warning"> - <config-properties> - <config-property name="severity" value="warning"/> - <config-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, LCURLY, 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, RCURLY, SL, SLIST, SL_ASSIGN, SR, SR_ASSIGN, STAR, STAR_ASSIGN"/> - </config-properties> - </rule-configuration> - <rule-configuration - classname="com.puppycrawl.tools.checkstyle.checks.WhitespaceAfterCheck" - severity="warning" comment="Excluding typecast"> - <config-properties> - <config-property name="tokens" value="COMMA, SEMI"/> - <config-property name="severity" value="warning"/> - </config-properties> - </rule-configuration> - <rule-configuration - classname="com.puppycrawl.tools.checkstyle.checks.OperatorWrapCheck" - severity="warning" comment="Set all operator tokens."> - <config-properties> - <config-property name="option" value="nl"/> - <config-property name="severity" value="warning"/> - <config-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_INSTANCEOF, LOR, LT, MINUS, MINUS_ASSIGN, MOD, MOD_ASSIGN, NOT_EQUAL, PLUS, PLUS_ASSIGN, QUESTION, SL, SL_ASSIGN, SR, SR_ASSIGN, STAR, STAR_ASSIGN"/> - </config-properties> - </rule-configuration> - <rule-configuration - classname="com.puppycrawl.tools.checkstyle.checks.ModifierOrderCheck" severity="warning"> - <config-properties> - <config-property name="severity" value="warning"/> - </config-properties> - </rule-configuration> - <rule-configuration - classname="com.puppycrawl.tools.checkstyle.checks.RedundantModifierCheck" severity="warning"> - <config-properties> - <config-property name="tokens" value="METHOD_DEF, VARIABLE_DEF"/> - <config-property name="severity" value="warning"/> - </config-properties> - </rule-configuration> - <rule-configuration - classname="com.puppycrawl.tools.checkstyle.checks.NeedBracesCheck" severity="warning"> - <config-properties> - <config-property name="tokens" value="LITERAL_DO, LITERAL_ELSE, LITERAL_IF, LITERAL_FOR, LITERAL_WHILE"/> - <config-property name="severity" value="warning"/> - </config-properties> - </rule-configuration> - <rule-configuration - classname="com.puppycrawl.tools.checkstyle.checks.RightCurlyCheck" severity="warning"> - <config-properties> - <config-property name="option" value="same"/> - <config-property name="tokens" value="LITERAL_CATCH, LITERAL_ELSE, LITERAL_TRY"/> - <config-property name="severity" value="warning"/> - </config-properties> - </rule-configuration> - <rule-configuration - classname="com.puppycrawl.tools.checkstyle.checks.AvoidNestedBlocksCheck" severity="warning"> - <config-properties> - <config-property name="severity" value="warning"/> - </config-properties> - </rule-configuration> - <rule-configuration - classname="com.puppycrawl.tools.checkstyle.checks.EmptyBlockCheck" - severity="warning" comment="Any text required"> - <config-properties> - <config-property name="option" value="text"/> - <config-property name="severity" value="warning"/> - <config-property name="tokens" value="LITERAL_CATCH, LITERAL_DO, LITERAL_ELSE, LITERAL_FINALLY, LITERAL_IF, LITERAL_FOR, LITERAL_TRY, LITERAL_WHILE, STATIC_INIT"/> - </config-properties> - </rule-configuration> - <rule-configuration - classname="com.puppycrawl.tools.checkstyle.checks.LeftCurlyCheck" - severity="warning" comment="Apply new line on wrap"> - <config-properties> - <config-property name="option" value="eol"/> - <config-property name="severity" value="warning"/> - <config-property name="tokens" value="CLASS_DEF, CTOR_DEF, INTERFACE_DEF, LITERAL_CATCH, LITERAL_DO, LITERAL_ELSE, LITERAL_FINALLY, LITERAL_FOR, LITERAL_IF, LITERAL_SWITCH, LITERAL_SYNCHRONIZED, LITERAL_TRY, LITERAL_WHILE, METHOD_DEF"/> - <config-property name="maxLineLength" value="100"/> - </config-properties> - </rule-configuration> - <rule-configuration - classname="com.puppycrawl.tools.checkstyle.checks.DoubleCheckedLockingCheck" severity="warning"> - <config-properties> - <config-property name="severity" value="warning"/> - </config-properties> - </rule-configuration> - <rule-configuration - classname="com.puppycrawl.tools.checkstyle.checks.EmptyStatementCheck" severity="warning"> - <config-properties> - <config-property name="severity" value="warning"/> - </config-properties> - </rule-configuration> - <rule-configuration - classname="com.puppycrawl.tools.checkstyle.checks.EqualsHashCodeCheck" severity="warning"> - <config-properties> - <config-property name="severity" value="warning"/> - </config-properties> - </rule-configuration> - <rule-configuration - classname="com.puppycrawl.tools.checkstyle.checks.HiddenFieldCheck" severity="warning"> - <config-properties> - <config-property name="tokens" value="PARAMETER_DEF, VARIABLE_DEF"/> - <config-property name="severity" value="warning"/> - </config-properties> - </rule-configuration> - <rule-configuration - classname="com.puppycrawl.tools.checkstyle.checks.InnerAssignmentCheck" severity="warning"> - <config-properties> - <config-property name="tokens" value="ASSIGN, BAND_ASSIGN, BOR_ASSIGN, BSR_ASSIGN, BXOR_ASSIGN, DIV_ASSIGN, MINUS_ASSIGN, MOD_ASSIGN, PLUS_ASSIGN, SL_ASSIGN, SR_ASSIGN, STAR_ASSIGN"/> - <config-property name="severity" value="warning"/> - </config-properties> - </rule-configuration> - <rule-configuration - classname="com.puppycrawl.tools.checkstyle.checks.MissingSwitchDefaultCheck" severity="warning"> - <config-properties> - <config-property name="severity" value="warning"/> - </config-properties> - </rule-configuration> - <rule-configuration - classname="com.puppycrawl.tools.checkstyle.checks.RedundantThrowsCheck" severity="warning"> - <config-properties> - <config-property name="allowSubclasses" value="false"/> - <config-property name="allowUnchecked" value="false"/> - <config-property name="severity" value="warning"/> - </config-properties> - </rule-configuration> - <rule-configuration - classname="com.puppycrawl.tools.checkstyle.checks.SimplifyBooleanExpressionCheck" severity="warning"> - <config-properties> - <config-property name="severity" value="warning"/> - </config-properties> - </rule-configuration> - <rule-configuration - classname="com.puppycrawl.tools.checkstyle.checks.SimplifyBooleanReturnCheck" severity="warning"> - <config-properties> - <config-property name="severity" value="warning"/> - </config-properties> - </rule-configuration> - <rule-configuration - classname="com.puppycrawl.tools.checkstyle.checks.HideUtilityClassConstructorCheck" severity="warning"> - <config-properties> - <config-property name="severity" value="warning"/> - </config-properties> - </rule-configuration> - <rule-configuration - classname="com.puppycrawl.tools.checkstyle.checks.FinalClassCheck" severity="warning"> - <config-properties> - <config-property name="severity" value="warning"/> - </config-properties> - </rule-configuration> - <rule-configuration - classname="com.puppycrawl.tools.checkstyle.checks.VisibilityModifierCheck" - severity="warning" comment="Allow protected"> - <config-properties> - <config-property name="packageAllowed" value="false"/> - <config-property name="severity" value="warning"/> - <config-property name="publicMemberPattern" value="^serialVersionUID"/> - <config-property name="protectedAllowed" value="true"/> - </config-properties> - </rule-configuration> - <rule-configuration - classname="com.puppycrawl.tools.checkstyle.checks.UpperEllCheck" severity="warning"> - <config-properties> - <config-property name="severity" value="warning"/> - </config-properties> - </rule-configuration> - <rule-configuration - classname="com.puppycrawl.tools.checkstyle.checks.ArrayTypeStyleCheck" severity="warning"> - <config-properties> - <config-property name="javaStyle" value="true"/> - <config-property name="severity" value="warning"/> - </config-properties> - </rule-configuration> - </check-configuration> -</checkstyle-configurations> |