xref: /aosp_15_r20/prebuilts/checkstyle/default-copyright-check.xml (revision 387726c4b5c67c6b48512fa4a28a3b8997d21b0d)
1*387726c4SAndroid Build Coastguard Worker<?xml version="1.0" encoding="UTF-8"?>
2*387726c4SAndroid Build Coastguard Worker<!--
3*387726c4SAndroid Build Coastguard Worker  ~ Copyright 2016 The Android Open Source Project
4*387726c4SAndroid Build Coastguard Worker  ~
5*387726c4SAndroid Build Coastguard Worker  ~ Licensed under the Apache License, Version 2.0 (the "License");
6*387726c4SAndroid Build Coastguard Worker  ~ you may not use this file except in compliance with the License.
7*387726c4SAndroid Build Coastguard Worker  ~ You may obtain a copy of the License at
8*387726c4SAndroid Build Coastguard Worker  ~
9*387726c4SAndroid Build Coastguard Worker  ~      http://www.apache.org/licenses/LICENSE-2.0
10*387726c4SAndroid Build Coastguard Worker  ~
11*387726c4SAndroid Build Coastguard Worker  ~ Unless required by applicable law or agreed to in writing, software
12*387726c4SAndroid Build Coastguard Worker  ~ distributed under the License is distributed on an "AS IS" BASIS,
13*387726c4SAndroid Build Coastguard Worker  ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14*387726c4SAndroid Build Coastguard Worker  ~ See the License for the specific language governing permissions and
15*387726c4SAndroid Build Coastguard Worker  ~ limitations under the License.
16*387726c4SAndroid Build Coastguard Worker-->
17*387726c4SAndroid Build Coastguard Worker<module name="RegexpHeader">
18*387726c4SAndroid Build Coastguard Worker  <property name="severity" value="error"/>
19*387726c4SAndroid Build Coastguard Worker  <message key="header.mismatch"
20*387726c4SAndroid Build Coastguard Worker           value="Android Copyright header seems to be incorrect. Expected ''{0}'' on this line."/>
21*387726c4SAndroid Build Coastguard Worker  <property name="header" value="^/\*\n \* Copyright (\([Cc]\) )?[0-9]{4} The Android Open Source Project\n \*\n \* Licensed under the Apache License, Version 2\.0 \(the \&quot;License\&quot;\);\n \* you may not use this file except in compliance with the License.\n \* You may obtain a copy of the License at\n \*\n \*      http:\/\/www\.apache\.org\/licenses\/LICENSE-2\.0\n \*\n \* Unless required by applicable law or agreed to in writing, software\n \* distributed under the License is distributed on an &quot;AS IS&quot; BASIS,\n \* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied\.\n \* See the License for the specific language governing permissions and\n \* limitations under the License\.\n \*\/" />
22*387726c4SAndroid Build Coastguard Worker</module>
23