You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pdfbox.apache.org by je...@apache.org on 2011/07/27 09:52:59 UTC
svn commit: r1151372 - /pdfbox/trunk/pdfbox-checkstyle-5.xml
Author: jeremias
Date: Wed Jul 27 07:52:58 2011
New Revision: 1151372
URL: http://svn.apache.org/viewvc?rev=1151372&view=rev
Log:
Added a checkstyle file for Checkstyle 5.x (adjusted from the 4.x version).
Added:
pdfbox/trunk/pdfbox-checkstyle-5.xml
- copied, changed from r1151360, pdfbox/trunk/pdfbox-checkstyle.xml
Copied: pdfbox/trunk/pdfbox-checkstyle-5.xml (from r1151360, pdfbox/trunk/pdfbox-checkstyle.xml)
URL: http://svn.apache.org/viewvc/pdfbox/trunk/pdfbox-checkstyle-5.xml?p2=pdfbox/trunk/pdfbox-checkstyle-5.xml&p1=pdfbox/trunk/pdfbox-checkstyle.xml&r1=1151360&r2=1151372&rev=1151372&view=diff
==============================================================================
--- pdfbox/trunk/pdfbox-checkstyle.xml (original)
+++ pdfbox/trunk/pdfbox-checkstyle-5.xml Wed Jul 27 07:52:58 2011
@@ -1,28 +1,37 @@
-<?xml version="1.0"?>
+<?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.
- !-->
+ ! 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.2//EN"
- "http://www.puppycrawl.com/dtds/configuration_1_2.dtd">
+ "-//Puppy Crawl//DTD Check Configuration 1.3//EN"
+ "http://www.puppycrawl.com/dtds/configuration_1_3.dtd">
+
+<!--
+ Checkstyle-Configuration: Aapche PDFBox Checkstyle Configuration
+ Description: Describes all the code styling rules for the Apache PDFBox project.
+-->
<module name="Checker">
+ <property name="charset" value="ISO-8859-1"/>
+ <property name="severity" value="warning"/>
<!-- Checks that a package.html file exists for each package. -->
- <!-- See http://checkstyle.sf.net/config_javadoc.html#PackageHtml -->
- <module name="PackageHtml"/>
+ <!-- See http://checkstyle.sourceforge.net/config_javadoc.html#JavadocPackage -->
+ <module name="JavadocPackage">
+ <property name="allowLegacy" value="true"/>
+ </module>
<!-- Checks whether files end with a new line. -->
<!-- See http://checkstyle.sf.net/config_misc.html#NewlineAtEndOfFile -->
@@ -32,9 +41,17 @@
<!-- See http://checkstyle.sf.net/config_misc.html#Translation -->
<module name="Translation"/>
+ <!-- Checks for Size Violations. -->
+ <!-- See http://checkstyle.sf.net/config_sizes.html -->
+ <module name="FileLength"/>
+
+ <module name="FileTabCharacter">
+ <property name="eachLine" value="true"/>
+ <property name="severity" value="error"/>
+ </module>
+
<module name="TreeWalker">
- <property name="charset" value="ISO-8859-1" />
<!-- Checks for Javadoc comments. -->
<!-- See http://checkstyle.sf.net/config_javadoc.html -->
@@ -96,7 +113,6 @@
<!-- Checks for Size Violations. -->
<!-- See http://checkstyle.sf.net/config_sizes.html -->
- <module name="FileLength"/>
<module name="LineLength">
<property name="max" value="120"/>
</module>
@@ -122,7 +138,6 @@
<property name="option" value="space" />
</module>-->
<!--<module name="TypecastParenPad"/>-->
- <module name="TabCharacter"/>
<!--<module name="WhitespaceAfter"/>-->
<!--<module name="WhitespaceAround"/>-->
@@ -149,7 +164,7 @@
<!-- Checks for common coding problems -->
<!-- See http://checkstyle.sf.net/config_coding.html -->
<!--<module name="AvoidInlineConditionals"/>-->
- <module name="DoubleCheckedLocking"/> <!-- MY FAVOURITE -->
+ <module name="DoubleCheckedLocking"/> <!-- MY FAVOURITE -->
<module name="EmptyStatement"/>
<module name="EqualsHashCode"/>
<module name="HiddenField"/>