Skip to content

Commit 4173bc1

Browse files
committed
Add more reports.
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/csv/trunk@1383535 13f79535-47bb-0310-9956-ffa450edef68
1 parent 2806ec8 commit 4173bc1

3 files changed

Lines changed: 105 additions & 19 deletions

File tree

LICENSE-header.txt

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
/*
2+
* Licensed to the Apache Software Foundation (ASF) under one or more
3+
* contributor license agreements. See the NOTICE file distributed with
4+
* this work for additional information regarding copyright ownership.
5+
* The ASF licenses this file to You under the Apache License, Version 2.0
6+
* (the "License"); you may not use this file except in compliance with
7+
* the License. You may obtain a copy of the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS,
13+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
* See the License for the specific language governing permissions and
15+
* limitations under the License.
16+
*/

checkstyle.xml

Lines changed: 39 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -20,26 +20,50 @@ limitations under the License.
2020
"-//Puppy Crawl//DTD Check Configuration 1.1//EN"
2121
"http://www.puppycrawl.com/dtds/configuration_1_1.dtd">
2222

23-
<!-- commons lang customization of default Checkstyle behavior -->
23+
<!-- commons codec customization of default Checkstyle behavior -->
2424
<module name="Checker">
25-
<property name="localeLanguage" value="en"/>
26-
<module name="PackageHtml"/>
25+
<property name="localeLanguage" value="en" />
26+
27+
<!-- Checks whether files end with a new line. -->
28+
<!-- See http://checkstyle.sf.net/config_misc.html#NewlineAtEndOfFile -->
29+
<module name="NewlineAtEndOfFile" />
30+
31+
<!-- Verify that EVERY source file has the appropriate license -->
32+
<module name="Header">
33+
<property name="headerFile" value="${checkstyle.header.file}" />
34+
</module>
35+
36+
<!-- Checks for Tab characters -->
37+
<!-- See http://checkstyle.sourceforge.net/config_whitespace.html#FileTabCharacter -->
38+
<module name="FileTabCharacter">
39+
<property name="fileExtensions" value="java" />
40+
</module>
41+
42+
<!-- Checks for white space at the end of the line -->
43+
<!-- See http://checkstyle.sourceforge.net/config_regexp.html -->
44+
<module name="RegexpSingleline">
45+
<property name="format" value="\s+$" />
46+
<property name="message" value="Line has trailing spaces." />
47+
<property name="fileExtensions" value="java" />
48+
</module>
49+
50+
<!-- @author tags are deprecated -->
51+
<module name="RegexpSingleline">
52+
<property name="format" value="^\s+\*\s+@author\s" />
53+
<property name="message" value="Deprecated @author tag" />
54+
<property name="fileExtensions" value="java" />
55+
<property name="severity" value="warning" />
56+
</module>
57+
2758
<module name="TreeWalker">
28-
<module name="TabCharacter"/>
29-
<module name="AvoidStarImport"/>
30-
<module name="RedundantImport"/>
31-
<module name="UnusedImports"/>
32-
<module name="NeedBraces"/>
33-
<module name="RedundantThrows">
34-
<property name="allowUnchecked" value="true"/>
59+
<property name="cacheFile" value="target/cachefile" />
60+
<module name="OperatorWrap">
61+
<property name="option" value="eol" />
3562
</module>
3663
<module name="LineLength">
3764
<property name="max" value="120"/>
3865
</module>
39-
<module name="JavadocMethod">
40-
<property name="allowUndeclaredRTE" value="true"/>
41-
</module>
42-
</module>
66+
</module>
67+
4368
</module>
44-
4569

pom.xml

Lines changed: 50 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
2+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
33
<modelVersion>4.0.0</modelVersion>
44
<parent>
55
<groupId>org.apache.commons</groupId>
@@ -15,7 +15,7 @@
1515
The Commons CSV library provides a simple interface for reading and writing
1616
CSV files of various types.
1717
</description>
18-
18+
1919
<dependencies>
2020
<dependency>
2121
<groupId>junit</groupId>
@@ -44,6 +44,13 @@ CSV files of various types.
4444
<email>yonik@apache.org</email>
4545
<organization>Apache</organization>
4646
</developer>
47+
<developer>
48+
<name>Gary Gregory</name>
49+
<id>ggregory</id>
50+
<email>ggregory@apache.org</email>
51+
<url>http://www.garygregory.com</url>
52+
<timezone>-5</timezone>
53+
</developer>
4754
</developers>
4855
<contributors>
4956
</contributors>
@@ -63,24 +70,63 @@ CSV files of various types.
6370
</distributionManagement>
6471

6572
<properties>
73+
<commons.release.version>1.0</commons.release.version>
74+
<!-- The RC version used in the staging repository URL. -->
75+
<commons.rc.version>RC1</commons.rc.version>
6676
<commons.componentid>csv</commons.componentid>
6777
<commons.jira.id>CSV</commons.jira.id>
6878
<commons.jira.pid>12313222</commons.jira.pid>
6979
<maven.compile.source>1.5</maven.compile.source>
7080
<maven.compile.target>1.5</maven.compile.target>
71-
</properties>
81+
<!-- Ensure copies work OK (can be removed later when this is in parent POM) -->
82+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
83+
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
84+
<commons.encoding>UTF-8</commons.encoding>
85+
<checkstyle.header.file>${basedir}/LICENSE-header.txt</checkstyle.header.file>
86+
</properties>
7287

7388
<reporting>
7489
<plugins>
7590
<plugin>
7691
<groupId>org.apache.maven.plugins</groupId>
7792
<artifactId>maven-checkstyle-plugin</artifactId>
78-
<version>2.1</version>
93+
<version>2.9.1</version>
7994
<configuration>
8095
<configLocation>${basedir}/checkstyle.xml</configLocation>
8196
<enableRulesSummary>false</enableRulesSummary>
97+
<headerFile>${basedir}/LICENSE-header.txt</headerFile>
98+
</configuration>
99+
</plugin>
100+
<plugin>
101+
<groupId>org.apache.maven.plugins</groupId>
102+
<artifactId>maven-pmd-plugin</artifactId>
103+
<version>2.7.1</version>
104+
<configuration>
105+
<targetJdk>${maven.compile.target}</targetJdk>
82106
</configuration>
83107
</plugin>
108+
<plugin>
109+
<groupId>org.codehaus.mojo</groupId>
110+
<artifactId>findbugs-maven-plugin</artifactId>
111+
<version>2.5.2</version>
112+
</plugin>
113+
<plugin>
114+
<groupId>org.codehaus.mojo</groupId>
115+
<artifactId>taglist-maven-plugin</artifactId>
116+
<version>2.4</version>
117+
<configuration>
118+
<tags>
119+
<tag>TODO</tag>
120+
<tag>NOPMD</tag>
121+
<tag>NOTE</tag>
122+
</tags>
123+
</configuration>
124+
</plugin>
125+
<plugin>
126+
<groupId>org.codehaus.mojo</groupId>
127+
<artifactId>javancss-maven-plugin</artifactId>
128+
<version>2.0</version>
129+
</plugin>
84130
</plugins>
85131
</reporting>
86132

0 commit comments

Comments
 (0)