xref: /aosp_15_r20/libcore/tools/checkstyle/aosp-copyright.xml (revision 89a6322812dc8573315e60046e7959c50dad91d4)
1*89a63228SAndroid Build Coastguard Worker<?xml version="1.0"?>
2*89a63228SAndroid Build Coastguard Worker<!DOCTYPE module PUBLIC "-//Checkstyle//DTD Checkstyle Configuration 1.3//EN" "https://checkstyle.org/dtds/configuration_1_3.dtd">
3*89a63228SAndroid Build Coastguard Worker<!-- Copyright (C) 2022 The Android Open Source Project
4*89a63228SAndroid Build Coastguard Worker
5*89a63228SAndroid Build Coastguard Worker     Licensed under the Apache License, Version 2.0 (the "License");
6*89a63228SAndroid Build Coastguard Worker     you may not use this file except in compliance with the License.
7*89a63228SAndroid Build Coastguard Worker     You may obtain a copy of the License at
8*89a63228SAndroid Build Coastguard Worker
9*89a63228SAndroid Build Coastguard Worker          http://www.apache.org/licenses/LICENSE-2.0
10*89a63228SAndroid Build Coastguard Worker
11*89a63228SAndroid Build Coastguard Worker     Unless required by applicable law or agreed to in writing, software
12*89a63228SAndroid Build Coastguard Worker     distributed under the License is distributed on an "AS IS" BASIS,
13*89a63228SAndroid Build Coastguard Worker     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14*89a63228SAndroid Build Coastguard Worker     See the License for the specific language governing permissions and
15*89a63228SAndroid Build Coastguard Worker     limitations under the License.
16*89a63228SAndroid Build Coastguard Worker-->
17*89a63228SAndroid Build Coastguard Worker<module name="Checker">
18*89a63228SAndroid Build Coastguard Worker  <property name="fileExtensions" value="java, c, h, cpp" />
19*89a63228SAndroid Build Coastguard Worker  <module name="RegexpHeader">
20*89a63228SAndroid Build Coastguard Worker    <property name="severity" value="error" />
21*89a63228SAndroid Build Coastguard Worker    <property name="headerFile" value="tools/checkstyle/aosp-copyright.pattern" />
22*89a63228SAndroid Build Coastguard Worker  </module>
23*89a63228SAndroid Build Coastguard Worker  <!-- Ignore files that fail pattern match due to dual licenses in their headers (Apache and AOSP). -->
24*89a63228SAndroid Build Coastguard Worker  <module name="BeforeExecutionExclusionFileFilter">
25*89a63228SAndroid Build Coastguard Worker    <property name="fileNamePattern"
26*89a63228SAndroid Build Coastguard Worker      value="libart/src/main/java/java/lang/(DexCache|StringFactory|AndroidHardcodedSystemProperties).java" />
27*89a63228SAndroid Build Coastguard Worker  </module>
28*89a63228SAndroid Build Coastguard Worker  <!-- Ignore patch sample file. -->
29*89a63228SAndroid Build Coastguard Worker  <module name="BeforeExecutionExclusionFileFilter">
30*89a63228SAndroid Build Coastguard Worker    <property name="fileNamePattern" value="tools/patch-style/sample-input.java"/>
31*89a63228SAndroid Build Coastguard Worker  </module>
32*89a63228SAndroid Build Coastguard Worker  <!-- ASF copyright -->
33*89a63228SAndroid Build Coastguard Worker  <module name="BeforeExecutionExclusionFileFilter">
34*89a63228SAndroid Build Coastguard Worker    <property name="fileNamePattern" value="luni/src/test/java/libcore/libcore/io/MemoryTest.java"/>
35*89a63228SAndroid Build Coastguard Worker  </module>
36*89a63228SAndroid Build Coastguard Worker  <!-- Google ASF copyright -->
37*89a63228SAndroid Build Coastguard Worker  <module name="BeforeExecutionExclusionFileFilter">
38*89a63228SAndroid Build Coastguard Worker    <property name="fileNamePattern" value="luni/src/test/java/libcore/libcore/util/SerializationTester.java"/>
39*89a63228SAndroid Build Coastguard Worker  </module>
40*89a63228SAndroid Build Coastguard Worker</module>
41