xref: /aosp_15_r20/external/apache-commons-lang/src/site/resources/checkstyle/checkstyle.xml (revision 455610af95f3bf5f4bc8a9eda520f57e389a4c42)
1*455610afSAndroid Build Coastguard Worker<?xml version="1.0"?>
2*455610afSAndroid Build Coastguard Worker<!--
3*455610afSAndroid Build Coastguard WorkerLicensed to the Apache Software Foundation (ASF) under one or more
4*455610afSAndroid Build Coastguard Workercontributor license agreements.  See the NOTICE file distributed with
5*455610afSAndroid Build Coastguard Workerthis work for additional information regarding copyright ownership.
6*455610afSAndroid Build Coastguard WorkerThe ASF licenses this file to You under the Apache License, Version 2.0
7*455610afSAndroid Build Coastguard Worker(the "License"); you may not use this file except in compliance with
8*455610afSAndroid Build Coastguard Workerthe License.  You may obtain a copy of the License at
9*455610afSAndroid Build Coastguard Worker
10*455610afSAndroid Build Coastguard Worker     http://www.apache.org/licenses/LICENSE-2.0
11*455610afSAndroid Build Coastguard Worker
12*455610afSAndroid Build Coastguard WorkerUnless required by applicable law or agreed to in writing, software
13*455610afSAndroid Build Coastguard Workerdistributed under the License is distributed on an "AS IS" BASIS,
14*455610afSAndroid Build Coastguard WorkerWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15*455610afSAndroid Build Coastguard WorkerSee the License for the specific language governing permissions and
16*455610afSAndroid Build Coastguard Workerlimitations under the License.
17*455610afSAndroid Build Coastguard Worker-->
18*455610afSAndroid Build Coastguard Worker
19*455610afSAndroid Build Coastguard Worker<!DOCTYPE module PUBLIC
20*455610afSAndroid Build Coastguard Worker    "-//Checkstyle//DTD Checkstyle Configuration 1.2//EN"
21*455610afSAndroid Build Coastguard Worker    "https://checkstyle.org/dtds/configuration_1_2.dtd">
22*455610afSAndroid Build Coastguard Worker
23*455610afSAndroid Build Coastguard Worker<!-- Apache Commons Lang customization of default Checkstyle behavior -->
24*455610afSAndroid Build Coastguard Worker<module name="Checker">
25*455610afSAndroid Build Coastguard Worker  <property name="localeLanguage" value="en"/>
26*455610afSAndroid Build Coastguard Worker  <module name="JavadocPackage"/>
27*455610afSAndroid Build Coastguard Worker  <module name="NewlineAtEndOfFile">
28*455610afSAndroid Build Coastguard Worker    <property name="lineSeparator" value="lf" />
29*455610afSAndroid Build Coastguard Worker  </module>
30*455610afSAndroid Build Coastguard Worker  <module name="FileTabCharacter">
31*455610afSAndroid Build Coastguard Worker    <property name="fileExtensions" value="java,xml"/>
32*455610afSAndroid Build Coastguard Worker  </module>
33*455610afSAndroid Build Coastguard Worker  <module name="RegexpSingleline">
34*455610afSAndroid Build Coastguard Worker    <!-- \s matches whitespace character, $ matches end of line. -->
35*455610afSAndroid Build Coastguard Worker    <property name="format" value="\s+$"/>
36*455610afSAndroid Build Coastguard Worker    <property name="message" value="Line has trailing spaces."/>
37*455610afSAndroid Build Coastguard Worker  </module>
38*455610afSAndroid Build Coastguard Worker  <module name="SuppressionFilter">
39*455610afSAndroid Build Coastguard Worker    <property name="file" value="src/site/resources/checkstyle/checkstyle-suppressions.xml"/>
40*455610afSAndroid Build Coastguard Worker  </module>
41*455610afSAndroid Build Coastguard Worker  <module name="TreeWalker">
42*455610afSAndroid Build Coastguard Worker    <module name="AvoidStarImport"/>
43*455610afSAndroid Build Coastguard Worker    <module name="IllegalImport"/>
44*455610afSAndroid Build Coastguard Worker    <module name="RedundantImport"/>
45*455610afSAndroid Build Coastguard Worker    <module name="UnusedImports"/>
46*455610afSAndroid Build Coastguard Worker    <module name="NeedBraces"/>
47*455610afSAndroid Build Coastguard Worker    <module name="JavadocMethod">
48*455610afSAndroid Build Coastguard Worker      <property name="accessModifiers" value="public" />
49*455610afSAndroid Build Coastguard Worker    </module>
50*455610afSAndroid Build Coastguard Worker    <module name="ModifierOrder"/>
51*455610afSAndroid Build Coastguard Worker    <module name="RedundantModifier"/>
52*455610afSAndroid Build Coastguard Worker    <module name="UpperEll" />
53*455610afSAndroid Build Coastguard Worker    <module name="LeftCurly"/>
54*455610afSAndroid Build Coastguard Worker    <module name="NeedBraces"/>
55*455610afSAndroid Build Coastguard Worker    <module name="RightCurly"/>
56*455610afSAndroid Build Coastguard Worker    <module name="GenericWhitespace"/>
57*455610afSAndroid Build Coastguard Worker    <module name="WhitespaceAfter"/>
58*455610afSAndroid Build Coastguard Worker    <module name="NoWhitespaceBefore"/>
59*455610afSAndroid Build Coastguard Worker </module>
60*455610afSAndroid Build Coastguard Worker</module>
61