Skip to content

Commit 089ba3c

Browse files
committed
Using commons-lang checkstyle as the beginning for a commons-cli checkstyle
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/cli/trunk@639942 13f79535-47bb-0310-9956-ffa450edef68
1 parent 4729315 commit 089ba3c

1 file changed

Lines changed: 45 additions & 0 deletions

File tree

checkstyle.xml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
<?xml version="1.0"?>
2+
<!--
3+
Licensed to the Apache Software Foundation (ASF) under one or more
4+
contributor license agreements. See the NOTICE file distributed with
5+
this work for additional information regarding copyright ownership.
6+
The ASF licenses this file to You under the Apache License, Version 2.0
7+
(the "License"); you may not use this file except in compliance with
8+
the License. You may obtain a copy of the License at
9+
10+
http://www.apache.org/licenses/LICENSE-2.0
11+
12+
Unless required by applicable law or agreed to in writing, software
13+
distributed under the License is distributed on an "AS IS" BASIS,
14+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15+
See the License for the specific language governing permissions and
16+
limitations under the License.
17+
-->
18+
19+
<!DOCTYPE module PUBLIC
20+
"-//Puppy Crawl//DTD Check Configuration 1.1//EN"
21+
"http://www.puppycrawl.com/dtds/configuration_1_1.dtd">
22+
23+
<!-- commons cli customization of default Checkstyle behavior -->
24+
<module name="Checker">
25+
<property name="localeLanguage" value="en"/>
26+
<module name="PackageHtml"/>
27+
<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"/>
35+
</module>
36+
<module name="LineLength">
37+
<property name="max" value="120"/>
38+
</module>
39+
<module name="JavadocMethod">
40+
<property name="allowUndeclaredRTE" value="true"/>
41+
</module>
42+
</module>
43+
</module>
44+
45+

0 commit comments

Comments
 (0)