Skip to content

Commit fabb444

Browse files
committed
fix checkstyle configuration
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/cli/trunk@1423413 13f79535-47bb-0310-9956-ffa450edef68
1 parent df56177 commit fabb444

3 files changed

Lines changed: 32 additions & 30 deletions

File tree

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@
206206
<configuration>
207207
<configLocation>${basedir}/src/conf/checkstyle.xml</configLocation>
208208
<enableRulesSummary>false</enableRulesSummary>
209-
<headerFile>${basedir}/src/conf/HEADER.txt</headerFile>
209+
<headerLocation>${basedir}/src/conf/HEADER.txt</headerLocation>
210210
</configuration>
211211
</plugin>
212212
<plugin>
@@ -266,7 +266,7 @@
266266
<id>setup-checkout</id>
267267
<activation>
268268
<file>
269-
<missing>${scmPubCheckoutDirectory}</missing>
269+
<missing>${commons.scmPubCheckoutDirectory}</missing>
270270
</file>
271271
</activation>
272272
<build>

src/conf/HEADER.txt

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

src/conf/checkstyle.xml

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,23 @@ limitations under the License.
3737
<!-- See http://checkstyle.sf.net/config_misc.html#Translation -->
3838
<module name="Translation"/>
3939

40+
<!-- Checks for Headers -->
41+
<!-- See http://checkstyle.sf.net/config_header.html -->
42+
<module name="RegexpHeader">
43+
<property name="headerFile" value="${checkstyle.header.file}"/>
44+
</module>
45+
4046
<!-- Exceptions -->
4147
<!--
4248
<module name="SuppressionFilter">
4349
<property name="file" value="conf/checkstyle-suppressions.xml"/>
4450
</module>
4551
-->
4652

53+
<module name="FileTabCharacter">
54+
<property name="eachLine" value="true"/>
55+
</module>
56+
4757
<module name="TreeWalker">
4858

4959
<property name="cacheFile" value="${checkstyle.cache.file}"/>
@@ -71,17 +81,6 @@ limitations under the License.
7181
<module name="StaticVariableName"/>
7282
<module name="TypeName"/>
7383

74-
75-
<!-- Checks for Headers -->
76-
<!-- See http://checkstyle.sf.net/config_header.html -->
77-
<module name="Header">
78-
<property name="headerFile" value="${checkstyle.header.file}"/>
79-
</module>
80-
81-
<!-- Following interprets the header file as regular expressions. -->
82-
<!-- <module name="RegexpHeader"/> -->
83-
84-
8584
<!-- Checks for imports -->
8685
<!-- See http://checkstyle.sf.net/config_import.html -->
8786
<module name="AvoidStarImport"/>
@@ -107,7 +106,7 @@ limitations under the License.
107106
<module name="NoWhitespaceBefore"/>
108107
<module name="OperatorWrap"/>
109108
<module name="ParenPad"/>
110-
<module name="TabCharacter"/>
109+
111110
<module name="WhitespaceAfter"/>
112111
<module name="WhitespaceAround">
113112
<property name="tokens" value="ASSIGN, BAND, BAND_ASSIGN, BOR, BOR_ASSIGN, BSR, BSR_ASSIGN, BXOR, BXOR_ASSIGN, COLON, DIV, DIV_ASSIGN, EQUAL, GE, GT, LAND, LCURLY, LE, LITERAL_ASSERT, LITERAL_CATCH, LITERAL_DO, LITERAL_ELSE, LITERAL_FINALLY, LITERAL_FOR, LITERAL_IF, LITERAL_RETURN, LITERAL_SYNCHRONIZED, LITERAL_TRY, LITERAL_WHILE, LOR, LT, MINUS, MINUS_ASSIGN, MOD, MOD_ASSIGN, NOT_EQUAL, PLUS, PLUS_ASSIGN, QUESTION, RCURLY, SL, SLIST, SL_ASSIGN, SR, SR_ASSIGN, STAR, STAR_ASSIGN, TYPE_EXTENSION_AND"/>

0 commit comments

Comments
 (0)