2022-09-29 15:16:00 -04:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
<!-- 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
|
|
|
|
"-//Checkstyle//DTD Checkstyle Configuration 1.3//EN"
|
|
|
|
"https://checkstyle.org/dtds/configuration_1_3.dtd">
|
|
|
|
<module name="Checker">
|
|
|
|
<property name="charset" value="UTF-8"/>
|
|
|
|
<property name="severity" value="warning"/>
|
|
|
|
<!-- Checks for whitespace -->
|
|
|
|
<!-- See http://checkstyle.sf.net/config_whitespace.html -->
|
|
|
|
<module name="FileTabCharacter">
|
|
|
|
<property name="eachLine" value="true"/>
|
|
|
|
</module>
|
|
|
|
<module name="LineLength">
|
|
|
|
<!-- needs extra, because Eclipse formatter
|
|
|
|
ignores the ending left brace -->
|
|
|
|
<property name="max" value="200"/>
|
|
|
|
<property name="ignorePattern" value="^package.*|^import.*|a href|href|http://|https://|ftp://"/>
|
|
|
|
</module>
|
|
|
|
<module name="TreeWalker">
|
2024-05-14 15:34:16 -04:00
|
|
|
<module name="WhitespaceAfter"/>
|
|
|
|
<module name="NoWhitespaceAfter"/>
|
|
|
|
<module name="NoWhitespaceBefore"/>
|
|
|
|
<module name="WhitespaceAround"/>
|
2022-09-29 15:16:00 -04:00
|
|
|
<module name="RegexpSinglelineJava">
|
|
|
|
<property name="format" value="\s+$"/>
|
|
|
|
<property name="message" value="Line has trailing whitespace."/>
|
|
|
|
</module>
|
|
|
|
<module name="RegexpSinglelineJava">
|
|
|
|
<property name="format" value="[@]see\s+[{][@]link"/>
|
|
|
|
<property name="message" value="Javadoc @see does not need @link: pick one or the other."/>
|
|
|
|
</module>
|
|
|
|
<module name="OuterTypeFilename"/>
|
|
|
|
<module name="AvoidStarImport"/>
|
2022-12-22 21:55:15 -05:00
|
|
|
<module name="IllegalImport"/>
|
|
|
|
<module name="RedundantImport"/>
|
2022-09-29 15:16:00 -04:00
|
|
|
<module name="UnusedImports">
|
|
|
|
<property name="processJavadoc" value="true"/>
|
|
|
|
</module>
|
|
|
|
<module name="NoLineWrap"/>
|
|
|
|
<module name="LeftCurly"/>
|
|
|
|
<module name="RightCurly"/>
|
|
|
|
<module name="RightCurly">
|
|
|
|
<property name="option" value="alone_or_singleline"/>
|
|
|
|
<property name="tokens" value="CLASS_DEF, METHOD_DEF, CTOR_DEF, LITERAL_FOR, LITERAL_WHILE, STATIC_INIT"/>
|
|
|
|
</module>
|
|
|
|
<module name="SeparatorWrap">
|
|
|
|
<property name="tokens" value="DOT"/>
|
|
|
|
<property name="option" value="nl"/>
|
|
|
|
</module>
|
|
|
|
<module name="SeparatorWrap">
|
|
|
|
<property name="tokens" value="COMMA"/>
|
|
|
|
<property name="option" value="EOL"/>
|
|
|
|
</module>
|
|
|
|
<module name="PackageName">
|
|
|
|
<property name="format" value="^[a-z]+(\.[a-z][a-zA-Z0-9]*)*$"/>
|
|
|
|
</module>
|
|
|
|
<module name="MethodTypeParameterName">
|
|
|
|
<property name="format" value="(^[A-Z][0-9]?)$|([A-Z][a-zA-Z0-9]*[T]$)"/>
|
|
|
|
</module>
|
|
|
|
<module name="MethodParamPad"/>
|
|
|
|
<module name="OperatorWrap">
|
|
|
|
<property name="option" value="NL"/>
|
|
|
|
<property name="tokens"
|
|
|
|
value="BAND, BOR, BSR, BXOR, DIV, EQUAL, GE, GT, LAND, LE, LITERAL_INSTANCEOF, LOR, LT, MINUS, MOD, NOT_EQUAL, QUESTION, SL, SR, STAR "/>
|
|
|
|
</module>
|
|
|
|
<module name="AnnotationLocation">
|
|
|
|
<property name="tokens" value="CLASS_DEF, INTERFACE_DEF, ENUM_DEF, METHOD_DEF, CTOR_DEF"/>
|
|
|
|
</module>
|
|
|
|
<module name="AnnotationLocation">
|
|
|
|
<property name="tokens" value="VARIABLE_DEF"/>
|
|
|
|
<property name="allowSamelineMultipleAnnotations" value="true"/>
|
|
|
|
</module>
|
|
|
|
<module name="NonEmptyAtclauseDescription"/>
|
|
|
|
<module name="JavadocMethod">
|
|
|
|
<property name="allowMissingParamTags" value="true"/>
|
|
|
|
<property name="allowMissingReturnTag" value="true"/>
|
|
|
|
<property name="allowedAnnotations" value="Override,Test,BeforeClass,AfterClass,Before,After"/>
|
|
|
|
</module>
|
|
|
|
<module name="SingleLineJavadoc"/>
|
|
|
|
</module>
|
|
|
|
</module>
|