1<?xml version="1.0"?> 2<!-- 3Licensed to the Apache Software Foundation (ASF) under one or more 4contributor license agreements. See the NOTICE file distributed with 5this work for additional information regarding copyright ownership. 6The 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 8the License. You may obtain a copy of the License at 9 10 http://www.apache.org/licenses/LICENSE-2.0 11 12Unless required by applicable law or agreed to in writing, software 13distributed under the License is distributed on an "AS IS" BASIS, 14WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15See the License for the specific language governing permissions and 16limitations under the License. 17--> 18<!DOCTYPE module PUBLIC 19 "-//Checkstyle//DTD Checkstyle Configuration 1.3//EN" 20 "https://checkstyle.org/dtds/configuration_1_3.dtd"> 21<module name="Checker"> 22 <property name="localeLanguage" value="en" /> 23 <module name="JavadocPackage"> 24 <!-- setting allowLegacy means it will check for package.html instead of just package-info.java --> 25 <property name="allowLegacy" value="true" /> 26 </module> 27 <module name="FileTabCharacter"> 28 <property name="fileExtensions" value="java,xml" /> 29 </module> 30 <module name="LineLength"> 31 <property name="max" value="160" /> 32 </module> 33 <module name="TreeWalker"> 34 <module name="AvoidStarImport" /> 35 <module name="RedundantImport" /> 36 <module name="UnusedImports" /> 37 <module name="ImportOrder"> 38 <property name="option" value="top"/> 39 <property name="groups" value="java,javax,org"/> 40 <property name="ordered" value="true"/> 41 <property name="separated" value="true"/> 42 </module> 43 <module name="NeedBraces" /> 44 <module name="LeftCurly" /> 45 <module name="JavadocMethod" /> 46 <module name="FinalLocalVariable" /> 47 <!-- No Trailing whitespace --> 48 <module name="Regexp"> 49 <property name="format" value="[ \t]+$" /> 50 <property name="illegalPattern" value="true" /> 51 <property name="message" value="Trailing whitespace" /> 52 </module> 53 </module> 54</module> 55