|
@@ -4,6 +4,23 @@
|
|
|
"http://www.puppycrawl.com/dtds/configuration_1_2.dtd">
|
|
|
|
|
|
<!--
|
|
|
+ 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.
|
|
|
+-->
|
|
|
+<!--
|
|
|
+ [Forked from Hadoop@2d7363b27360e36fdd62546c0f9d0b1d78133f29]
|
|
|
|
|
|
Checkstyle configuration for Zookeeper that is based on the sun_checks.xml file
|
|
|
that is bundled with Checkstyle and includes checks for:
|
|
@@ -35,7 +52,7 @@
|
|
|
|
|
|
<!-- Checks that a package.html file exists for each package. -->
|
|
|
<!-- See http://checkstyle.sf.net/config_javadoc.html#PackageHtml -->
|
|
|
- <module name="PackageHtml"/>
|
|
|
+ <module name="JavadocPackage"/>
|
|
|
|
|
|
<!-- Checks whether files end with a new line. -->
|
|
|
<!-- See http://checkstyle.sf.net/config_misc.html#NewlineAtEndOfFile -->
|
|
@@ -45,6 +62,8 @@
|
|
|
<!-- See http://checkstyle.sf.net/config_misc.html#Translation -->
|
|
|
<module name="Translation"/>
|
|
|
|
|
|
+ <module name="FileLength"/>
|
|
|
+ <module name="FileTabCharacter"/>
|
|
|
|
|
|
<module name="TreeWalker">
|
|
|
|
|
@@ -96,8 +115,9 @@
|
|
|
|
|
|
<!-- Checks for Size Violations. -->
|
|
|
<!-- See http://checkstyle.sf.net/config_sizes.html -->
|
|
|
- <module name="FileLength"/>
|
|
|
- <module name="LineLength"/>
|
|
|
+ <module name="LineLength">
|
|
|
+ <property name="ignorePattern" value="^import"/>
|
|
|
+ </module>
|
|
|
<module name="MethodLength"/>
|
|
|
<module name="ParameterNumber"/>
|
|
|
|
|
@@ -110,7 +130,6 @@
|
|
|
<module name="NoWhitespaceBefore"/>
|
|
|
<module name="ParenPad"/>
|
|
|
<module name="TypecastParenPad"/>
|
|
|
- <module name="TabCharacter"/>
|
|
|
<module name="WhitespaceAfter">
|
|
|
<property name="tokens" value="COMMA, SEMI"/>
|
|
|
</module>
|
|
@@ -134,7 +153,6 @@
|
|
|
<!-- Checks for common coding problems -->
|
|
|
<!-- See http://checkstyle.sf.net/config_coding.html -->
|
|
|
<!-- module name="AvoidInlineConditionals"/-->
|
|
|
- <module name="DoubleCheckedLocking"/>
|
|
|
<module name="EmptyStatement"/>
|
|
|
<module name="EqualsHashCode"/>
|
|
|
<module name="HiddenField">
|
|
@@ -143,7 +161,6 @@
|
|
|
<module name="IllegalInstantiation"/>
|
|
|
<module name="InnerAssignment"/>
|
|
|
<module name="MissingSwitchDefault"/>
|
|
|
- <module name="RedundantThrows"/>
|
|
|
<module name="SimplifyBooleanExpression"/>
|
|
|
<module name="SimplifyBooleanReturn"/>
|
|
|
|