commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1230377 - in /commons/proper/net/trunk: checkstyle.xml pom.xml
Date Thu, 12 Jan 2012 02:47:41 GMT
Author: sebb
Date: Thu Jan 12 02:47:40 2012
New Revision: 1230377

URL: http://svn.apache.org/viewvc?rev=1230377&view=rev
Log:
Initial checkstyle config.
Needs tweaking

Added:
    commons/proper/net/trunk/checkstyle.xml   (with props)
Modified:
    commons/proper/net/trunk/pom.xml

Added: commons/proper/net/trunk/checkstyle.xml
URL: http://svn.apache.org/viewvc/commons/proper/net/trunk/checkstyle.xml?rev=1230377&view=auto
==============================================================================
--- commons/proper/net/trunk/checkstyle.xml (added)
+++ commons/proper/net/trunk/checkstyle.xml Thu Jan 12 02:47:40 2012
@@ -0,0 +1,56 @@
+<?xml version="1.0"?>
+<!--
+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">
+
+<!-- Commons Net customization of default Checkstyle behavior -->
+<module name="Checker">
+  <property name="localeLanguage" value="en"/>
+  <module name="JavadocPackage">
+    <!-- setting allowLegacy means it will check for package.html instead of just package-info.java
-->
+    <property name="allowLegacy" value="true"/>
+  </module>
+  <module name="FileTabCharacter">
+    <property name="fileExtensions" value="java,xml"/>
+  </module>
+  <module name="TreeWalker">
+    <property name="cacheFile" value="target/cachefile"/>
+    <module name="AvoidStarImport"/>
+    <!-- module name="RedundantImport"/-->
+    <!-- module name="UnusedImports"/-->
+    <module name="NeedBraces"/>
+    <!-- TEMP
+    <module name="RedundantThrows">
+      <property name="allowUnchecked" value="true"/>
+    </module>
+     -->
+ <!-- 
+    <module name="JavadocMethod">
+      <property name="scope" value="public"/>
+      <property name="allowUndeclaredRTE" value="true"/>
+      <property name="allowMissingJavadoc" value="true"/>
+      <property name="allowMissingParamTags" value="true"/>
+      <property name="allowMissingThrowsTags" value="true"/> 
+    </module>
+ --> 
+ </module>
+</module>
+                        
+

Propchange: commons/proper/net/trunk/checkstyle.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Modified: commons/proper/net/trunk/pom.xml
URL: http://svn.apache.org/viewvc/commons/proper/net/trunk/pom.xml?rev=1230377&r1=1230376&r2=1230377&view=diff
==============================================================================
--- commons/proper/net/trunk/pom.xml (original)
+++ commons/proper/net/trunk/pom.xml Thu Jan 12 02:47:40 2012
@@ -383,6 +383,16 @@ Supported protocols include: Echo, Finge
                 </configuration>
             </plugin>
 
+            <plugin>
+                <groupId>org.apache.maven.plugins</groupId>
+                <artifactId>maven-checkstyle-plugin</artifactId>
+                <version>2.8</version>
+                <configuration>
+                    <configLocation>${basedir}/checkstyle.xml</configLocation>
+                    <enableRulesSummary>false</enableRulesSummary>
+                </configuration>
+            </plugin>
+
         </plugins>
     </reporting>
 



Mime
View raw message