You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwebbeans.apache.org by st...@apache.org on 2010/10/21 11:36:51 UTC
svn commit: r1025908 -
/openwebbeans/build-tools/trunk/src/main/resources/openwebbeans/owb-checks-default.xml
Author: struberg
Date: Thu Oct 21 09:36:51 2010
New Revision: 1025908
URL: http://svn.apache.org/viewvc?rev=1025908&view=rev
Log:
OWB-478 change checkstyle configuration for m-checkstyle-plugin-2.6 compatibility
we still used the old checkstyle syntax for legacy checkstyle-4.x.
Since this is not working with maven-3 anymore, we need to upgrade to
checkstyle-5.x syntax.
Modified:
openwebbeans/build-tools/trunk/src/main/resources/openwebbeans/owb-checks-default.xml
Modified: openwebbeans/build-tools/trunk/src/main/resources/openwebbeans/owb-checks-default.xml
URL: http://svn.apache.org/viewvc/openwebbeans/build-tools/trunk/src/main/resources/openwebbeans/owb-checks-default.xml?rev=1025908&r1=1025907&r2=1025908&view=diff
==============================================================================
--- openwebbeans/build-tools/trunk/src/main/resources/openwebbeans/owb-checks-default.xml (original)
+++ openwebbeans/build-tools/trunk/src/main/resources/openwebbeans/owb-checks-default.xml Thu Oct 21 09:36:51 2010
@@ -1,4 +1,4 @@
-<?xml version="1.0"?>
+<?xml version="1.0"?>
<!--
/*
* Licensed to the Apache Software Foundation (ASF) under one
@@ -21,8 +21,8 @@
-->
<!DOCTYPE module PUBLIC
- "-//Puppy Crawl//DTD Check Configuration 1.1//EN"
- "http://www.puppycrawl.com/dtds/configuration_1_1.dtd">
+ "-//Puppy Crawl//DTD Check Configuration 1.2//EN"
+ "http://www.puppycrawl.com/dtds/configuration_1_2.dtd">
<!--
Checkstyle configuration that checks the OpenWebBeans coding conventions.
@@ -42,6 +42,25 @@
<!-- See http://checkstyle.sf.net/config_misc.html#Translation -->
<!-- module name="Translation"/ -->
+ <!-- Checks for Headers -->
+ <!-- See http://checkstyle.sf.net/config_header.html -->
+ <module name="Header">
+ <property name="headerFile" value="${checkstyle.header.file}"/>
+ <property name="fileExtensions" value="java"/>
+ </module>
+
+ <!-- Checks for Size Violations. -->
+ <!-- See http://checkstyle.sf.net/config_sizes.html -->
+ <module name="FileLength">
+ <property name="max" value="3500" />
+ <property name="fileExtensions" value="java"/>
+ </module>
+
+ <!-- Checks for whitespace -->
+ <!-- See http://checkstyle.sf.net/config_whitespace.html -->
+ <module name="FileTabCharacter"/>
+
+
<module name="TreeWalker">
<property name="cacheFile" value="${checkstyle.cache.file}"/>
@@ -87,14 +106,6 @@
<property name="format" value="^_?[A-Z][a-zA-Z0-9]*$"/>
</module>
-
- <!-- Checks for Headers -->
- <!-- See http://checkstyle.sf.net/config_header.html -->
- <module name="Header">
- <property name="headerFile" value="${checkstyle.header.file}"/>
- </module>
-
-
<!-- Checks for imports -->
<!-- See http://checkstyle.sf.net/config_import.html -->
<module name="AvoidStarImport">
@@ -105,11 +116,6 @@
<module name="UnusedImports"/>
- <!-- Checks for Size Violations. -->
- <!-- See http://checkstyle.sf.net/config_sizes.html -->
- <module name="FileLength">
- <property name="max" value="3500" />
- </module>
<module name="LineLength">
<property name="max" value="180" />
<property name="ignorePattern" value="@version|@see"/>
@@ -122,10 +128,6 @@
</module>
- <!-- Checks for whitespace -->
- <!-- See http://checkstyle.sf.net/config_whitespace.html -->
- <module name="TabCharacter"/>
-
<!-- Modifier Checks -->
<!-- See http://checkstyle.sf.net/config_modifiers.html -->
<!-- module name="ModifierOrder"/ -->