You are viewing a plain text version of this content. The canonical link for it is here.
Posted to ivy-commits@incubator.apache.org by gs...@apache.org on 2007/06/23 21:42:08 UTC
svn commit: r550115 - in /incubator/ivy/core/trunk/src/etc/checkstyle:
checkstyle-config checkstyle-suppress.xml
Author: gscokart
Date: Sat Jun 23 14:42:07 2007
New Revision: 550115
URL: http://svn.apache.org/viewvc?view=rev&rev=550115
Log:
remove Magic number checkstyles errors from tests because test use plenty of it, and its more readable than using constants
Added:
incubator/ivy/core/trunk/src/etc/checkstyle/checkstyle-suppress.xml (with props)
Modified:
incubator/ivy/core/trunk/src/etc/checkstyle/checkstyle-config
Modified: incubator/ivy/core/trunk/src/etc/checkstyle/checkstyle-config
URL: http://svn.apache.org/viewvc/incubator/ivy/core/trunk/src/etc/checkstyle/checkstyle-config?view=diff&rev=550115&r1=550114&r2=550115
==============================================================================
--- incubator/ivy/core/trunk/src/etc/checkstyle/checkstyle-config (original)
+++ incubator/ivy/core/trunk/src/etc/checkstyle/checkstyle-config Sat Jun 23 14:42:07 2007
@@ -1,6 +1,23 @@
<?xml version="1.0"?>
<!DOCTYPE module PUBLIC "-//Puppy Crawl//DTD Check Configuration 1.1//EN" "http://www.puppycrawl.com/dtds/configuration_1_1.dtd">
-
+<!--
+ 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.
+-->
<module name="Checker">
<module name="TreeWalker">
<!-- Javadoc requirements -->
@@ -124,4 +141,9 @@
<property name="onCommentFormat" value="CheckStyle\:([\w\|]+) *ON"/>
<property name="checkFormat" value="$1"/>
</module>
+
+ <module name="SuppressionFilter">
+ <property name="file" value="${basedir}/src/etc/checkstyle/checkstyle-suppress.xml"/>
+ </module>
+
</module>
Added: incubator/ivy/core/trunk/src/etc/checkstyle/checkstyle-suppress.xml
URL: http://svn.apache.org/viewvc/incubator/ivy/core/trunk/src/etc/checkstyle/checkstyle-suppress.xml?view=auto&rev=550115
==============================================================================
--- incubator/ivy/core/trunk/src/etc/checkstyle/checkstyle-suppress.xml (added)
+++ incubator/ivy/core/trunk/src/etc/checkstyle/checkstyle-suppress.xml Sat Jun 23 14:42:07 2007
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE suppressions PUBLIC
+ "-//Puppy Crawl//DTD Suppressions 1.0//EN"
+ "http://www.puppycrawl.com/dtds/suppressions_1_0.dtd">
+<!--
+ 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.
+-->
+<suppressions>
+ <suppress checks="MagicNumber" files=".*[\\/]test[\\/]java[\\/].*"/>
+</suppressions>
\ No newline at end of file
Propchange: incubator/ivy/core/trunk/src/etc/checkstyle/checkstyle-suppress.xml
------------------------------------------------------------------------------
svn:eol-style = native