commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1233154 - in /commons/proper/net/trunk: checkstyle-suppressions.xml checkstyle.xml pom.xml
Date Thu, 19 Jan 2012 03:08:40 GMT
Author: sebb
Date: Thu Jan 19 03:08:39 2012
New Revision: 1233154

URL: http://svn.apache.org/viewvc?rev=1233154&view=rev
Log:
Update checkstyle rules; add suppressions

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

Added: commons/proper/net/trunk/checkstyle-suppressions.xml
URL: http://svn.apache.org/viewvc/commons/proper/net/trunk/checkstyle-suppressions.xml?rev=1233154&view=auto
==============================================================================
--- commons/proper/net/trunk/checkstyle-suppressions.xml (added)
+++ commons/proper/net/trunk/checkstyle-suppressions.xml Thu Jan 19 03:08:39 2012
@@ -0,0 +1,27 @@
+<?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 suppressions PUBLIC
+    "-//Puppy Crawl//DTD Suppressions 1.1//EN"
+    "http://www.puppycrawl.com/dtds/suppressions_1_1.dtd">
+    
+<suppressions>
+    <!-- On Windows, it appears that Checkstyle matches files using \ delims -->
+    <suppress checks="JavadocPackage" files="[/\\]examples[/\\].*\.java"/>
+    <suppress checks="JavadocPackage" files="[/\\]test[/\\].*\.java"/>
+</suppressions>
\ No newline at end of file

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

Modified: commons/proper/net/trunk/checkstyle.xml
URL: http://svn.apache.org/viewvc/commons/proper/net/trunk/checkstyle.xml?rev=1233154&r1=1233153&r2=1233154&view=diff
==============================================================================
--- commons/proper/net/trunk/checkstyle.xml (original)
+++ commons/proper/net/trunk/checkstyle.xml Thu Jan 19 03:08:39 2012
@@ -22,6 +22,7 @@ limitations under the License.
 
 <!-- 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
-->
@@ -33,8 +34,8 @@ limitations under the License.
   <module name="TreeWalker">
     <property name="cacheFile" value="target/cachefile"/>
     <module name="AvoidStarImport"/>
-    <!-- module name="RedundantImport"/-->
-    <!-- module name="UnusedImports"/-->
+    <module name="RedundantImport"/>
+    <module name="UnusedImports"/>
     <module name="NeedBraces"/>
     <!-- TEMP
     <module name="RedundantThrows">

Modified: commons/proper/net/trunk/pom.xml
URL: http://svn.apache.org/viewvc/commons/proper/net/trunk/pom.xml?rev=1233154&r1=1233153&r2=1233154&view=diff
==============================================================================
--- commons/proper/net/trunk/pom.xml (original)
+++ commons/proper/net/trunk/pom.xml Thu Jan 19 03:08:39 2012
@@ -389,6 +389,7 @@ Supported protocols include: Echo, Finge
                 <version>2.8</version>
                 <configuration>
                     <configLocation>${basedir}/checkstyle.xml</configLocation>
+                    <suppressionsLocation>${basedir}/checkstyle-suppressions.xml</suppressionsLocation>
                     <enableRulesSummary>false</enableRulesSummary>
                 </configuration>
             </plugin>



Mime
View raw message