You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ace.apache.org by ma...@apache.org on 2011/10/28 13:56:15 UTC

svn commit: r1190260 - in /incubator/ace/trunk: etc/ etc/style-guide/ etc/style-guide/checkstyle/ etc/style-guide/checkstyle/checkstyle-5.4.xml etc/style-guide/checkstyle/checkstyle.header pom.xml

Author: marrs
Date: Fri Oct 28 11:56:14 2011
New Revision: 1190260

URL: http://svn.apache.org/viewvc?rev=1190260&view=rev
Log:
ACE-185 committed the checkstyle files to svn

Added:
    incubator/ace/trunk/etc/
    incubator/ace/trunk/etc/style-guide/
    incubator/ace/trunk/etc/style-guide/checkstyle/
    incubator/ace/trunk/etc/style-guide/checkstyle/checkstyle-5.4.xml
    incubator/ace/trunk/etc/style-guide/checkstyle/checkstyle.header
Modified:
    incubator/ace/trunk/pom.xml

Added: incubator/ace/trunk/etc/style-guide/checkstyle/checkstyle-5.4.xml
URL: http://svn.apache.org/viewvc/incubator/ace/trunk/etc/style-guide/checkstyle/checkstyle-5.4.xml?rev=1190260&view=auto
==============================================================================
--- incubator/ace/trunk/etc/style-guide/checkstyle/checkstyle-5.4.xml (added)
+++ incubator/ace/trunk/etc/style-guide/checkstyle/checkstyle-5.4.xml Fri Oct 28 11:56:14 2011
@@ -0,0 +1,116 @@
+<?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.1//EN" "http://www.puppycrawl.com/dtds/configuration_1_1.dtd">
+<module name="Checker">
+  <module name="TreeWalker">
+    
+    <module name="JavadocType">
+      <property name="scope" value="protected"/>
+      <property name="severity" value="error"/>
+      <property name="tokens" value="CLASS_DEF, INTERFACE_DEF"/>
+    </module>
+    <module name="JavadocMethod">
+      <property name="allowMissingParamTags" value="false"/>
+      <property name="allowMissingReturnTag" value="false"/>
+      <property name="allowMissingThrowsTags" value="false"/>
+      <property name="allowThrowsTagsForSubclasses" value="false"/>
+      <property name="allowUndeclaredRTE" value="true"/>
+      <property name="scope" value="protected"/>
+      <property name="severity" value="warning"/>
+      <property name="tokens" value="METHOD_DEF, CTOR_DEF"/>
+    </module>
+    <module name="JavadocVariable">
+      <property name="scope" value="protected"/>
+      <property name="severity" value="warning"/>
+    </module>
+
+
+    <module name="OuterTypeFilename"/>
+    <module name="DeclarationOrder"/>
+    <module name="InnerTypeLast"/>
+
+    <module name="WhitespaceAfter">
+      <property name="tokens" value="COMMA, SEMI"/>
+    </module>
+    <module name="WhitespaceAround">
+      <property name="allowEmptyConstructors" value="true"/>
+      <property name="allowEmptyMethods" value="true"/>
+      <property name="severity" value="warning"/> <!-- warning because empty blocks cannot be exempt from this rule -->
+    </module>
+    <module name="NoWhitespaceBefore"/>
+    <module name="ParenPad"/>
+    <module name="MethodParamPad"/>
+    <!-- doesn't seem to work properly
+    <module name="TypecastParenPad">
+      <property name="option" value="space"/>
+      <property name="tokens" value="RPAREN"/>
+    </module>
+    -->
+    <module name="TypecastParenPad">
+      <property name="option" value="nospace"/>
+      <property name="tokens" value="TYPECAST"/>
+    </module>
+    <module name="GenericWhitespace"/>
+    <module name="LeftCurly"/>
+    <module name="RightCurly">
+      <property name="option" value="alone"/>
+    </module>
+    <module name="NeedBraces"/>
+    <module name="OperatorWrap">
+      <property name="option" value="nl"/>
+    </module>
+
+    
+    <module name="ModifierOrder"/>
+    <module name="OneStatementPerLine"/>
+    <module name="RedundantModifier"/>
+    <module name="MultipleVariableDeclarations"/>
+    
+    
+    <module name="TypeName"/>
+    <module name="AbstractClassName"/>
+    <module name="MethodName"/>
+    <module name="ParameterName"/>
+    <module name="LocalVariableName"/>
+    <module name="LocalFinalVariableName"/>
+    <module name="StaticVariableName"/>
+    <module name="MemberName">
+      <property name="format" value="^m_[a-z][a-zA-Z0-9]*$"/>
+    </module>
+    <module name="ClassTypeParameterName"/>
+    <module name="MethodTypeParameterName"/>
+    <module name="ConstantName"/>
+    <module name="PackageName">
+      <property name="format" value="^org\.apache\.ace\.[a-z]+(\.[a-z][a-z0-9]*)*$"/>
+    </module>
+    
+  </module>
+  
+  <module name="RegexpHeader">
+    <property name="headerFile" value="${samedir}/checkstyle.header"/>
+    <property name="severity" value="error"/>
+    <property name="fileExtensions" value="java"/>
+  </module>
+  <module name="FileLengthCheck">
+    <property name="max" value="2000"/>
+    <property name="severity" value="warning"/>
+  </module>
+  <module name="FileTabCharacter">
+    <property name="severity" value="error"/>
+  </module>
+</module>

Added: incubator/ace/trunk/etc/style-guide/checkstyle/checkstyle.header
URL: http://svn.apache.org/viewvc/incubator/ace/trunk/etc/style-guide/checkstyle/checkstyle.header?rev=1190260&view=auto
==============================================================================
--- incubator/ace/trunk/etc/style-guide/checkstyle/checkstyle.header (added)
+++ incubator/ace/trunk/etc/style-guide/checkstyle/checkstyle.header Fri Oct 28 11:56:14 2011
@@ -0,0 +1,18 @@
+^\/*
+^ \* 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.
+^ \*\/

Modified: incubator/ace/trunk/pom.xml
URL: http://svn.apache.org/viewvc/incubator/ace/trunk/pom.xml?rev=1190260&r1=1190259&r2=1190260&view=diff
==============================================================================
--- incubator/ace/trunk/pom.xml (original)
+++ incubator/ace/trunk/pom.xml Fri Oct 28 11:56:14 2011
@@ -118,6 +118,7 @@
 
         <module>ace-managementagent</module>
         <module>ace-launcher</module>
+        <module>ace-glassfish-launcher</module>
 
         <module>ace-karaf-features</module>
 
@@ -126,7 +127,6 @@
         <module>ace-target-devserver</module>
 
         <module>ace-integrationtests</module>
-        <module>ace-glassfish-launcher</module>
     </modules>
 
     <scm>