Author: apetrelli
Date: Sat Dec 11 13:17:10 2010
New Revision: 1044649
URL: http://svn.apache.org/viewvc?rev=1044649&view=rev
Log:
Added Checkstyle rules compatible with version 5.
Added:
tiles/maven/trunk/build/tiles_checks_v5.xml (with props)
Added: tiles/maven/trunk/build/tiles_checks_v5.xml
URL:
http://svn.apache.org/viewvc/tiles/maven/trunk/build/tiles_checks_v5.xml?rev=1044649&view=auto
==============================================================================
--- tiles/maven/trunk/build/tiles_checks_v5.xml (added)
+++ tiles/maven/trunk/build/tiles_checks_v5.xml Sat Dec 11 13:17:10 2010
@@ -0,0 +1,99 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Licensed to the Apache Software Foundation (ASF) under one or more
+ contributor license agreements. See the NOTICE file distributed with
+ this work for additional information regarding copyright ownership.
+ The ASF licenses this file to You under the Apache License, Version 2.0
+ (the "License"); you may not use this file except in compliance with
+ the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+<!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.2//EN"
"http://www.puppycrawl.com/dtds/configuration_1_2.dtd">
+<module name="Checker">
+ <property name="severity" value="warning"/>
+ <module name="RegexpHeader">
+ <property name="header" value="/\*\s*\n \*\s*\$Id.*\$\n \*\s*\n
\*\s*Licensed to the Apache Software Foundation \(ASF\) under one\n \*\s*or
more contributor license agreements\. See the NOTICE file\n \*\s*distributed
with this work for additional information\n \*\s*regarding copyright
ownership\. The ASF licenses this file\n \*\s*to you under the Apache License,
Version 2\.0 \(the\n \*\s*.License.\); you may not use this file except in
compliance\n \*\s*with the License\. You may obtain a copy of the License at\n
\*\s*\n \*\s*http://www\.apache\.org/licenses/LICENSE\-2\.0\n \*\s*\n
\*\s*Unless required by applicable law or agreed to in writing,\n \*\s*software
distributed under the License is distributed on an\n \*\s*.AS IS. BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY\n \*\s*KIND, either express or
implied\. See the License for the\n \*\s*specific language governing
permissions and limitations\n \*\s*under the License\.\n \*/\s*"/>
+ </module>
+ <module name="TreeWalker">
+ <property name="cacheFile" value="${checkstyle.cache.file}"/>
+ <module name="JavadocMethod">
+ <property name="allowUndeclaredRTE" value="true"/>
+ </module>
+ <module name="JavadocType"/>
+ <module name="JavadocVariable"/>
+ <module name="JavadocStyle"/>
+ <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"/>
+ <module name="AvoidStarImport"/>
+ <module name="IllegalImport"/>
+ <module name="RedundantImport"/>
+ <module name="UnusedImports"/>
+ <module name="FileLength"/>
+ <module name="LineLength">
+ <property name="ignorePattern" value="^ \* @version .*$"/>
+ <property name="max" value="120"/>
+ </module>
+ <module name="MethodLength"/>
+ <module name="ParameterNumber"/>
+ <module name="EmptyForIteratorPad"/>
+ <module name="NoWhitespaceAfter">
+ <property name="tokens"
value="BNOT,DEC,DOT,INC,LNOT,UNARY_MINUS,UNARY_PLUS"/>
+ </module>
+ <module name="NoWhitespaceBefore"/>
+ <module name="OperatorWrap"/>
+ <module name="ParenPad"/>
+ <module name="TypecastParenPad"/>
+ <module name="TabCharacter"/>
+ <module name="WhitespaceAfter"/>
+ <module name="WhitespaceAround">
+ <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,LITERAL_ASSERT,TYPE_EXTENSION_AND"/>
+ </module>
+ <module name="ModifierOrder"/>
+ <module name="RedundantModifier"/>
+ <module name="AvoidNestedBlocks"/>
+ <module name="EmptyBlock"/>
+ <module name="LeftCurly"/>
+ <module name="NeedBraces"/>
+ <module name="RightCurly"/>
+ <module name="DoubleCheckedLocking"/>
+ <module name="EmptyStatement"/>
+ <module name="EqualsHashCode"/>
+ <module name="IllegalInstantiation"/>
+ <module name="InnerAssignment"/>
+ <module name="MagicNumber"/>
+ <module name="MissingSwitchDefault"/>
+ <module name="RedundantThrows"/>
+ <module name="SimplifyBooleanExpression"/>
+ <module name="SimplifyBooleanReturn"/>
+ <module name="FinalClass"/>
+ <module name="HideUtilityClassConstructor"/>
+ <module name="InterfaceIsType"/>
+ <module name="VisibilityModifier">
+ <property name="protectedAllowed" value="true"/>
+ </module>
+ <module name="ArrayTypeStyle"/>
+ <module name="GenericIllegalRegexp">
+ <property name="format" value="\s+$"/>
+ <property name="message" value="Line has trailing spaces."/>
+ </module>
+ <module name="TodoComment"/>
+ <module name="UpperEll"/>
+ </module>
+ <module name="PackageHtml"/>
+ <module name="NewlineAtEndOfFile"/>
+ <module name="Translation"/>
+</module>
Propchange: tiles/maven/trunk/build/tiles_checks_v5.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: tiles/maven/trunk/build/tiles_checks_v5.xml
------------------------------------------------------------------------------
svn:keywords = Date Author Id Revision HeadURL