xref: /aosp_15_r20/libcore/tools/checkstyle/not-gpl.xml (revision 89a6322812dc8573315e60046e7959c50dad91d4)
1*89a63228SAndroid Build Coastguard Worker<?xml version="1.0"?>
2*89a63228SAndroid Build Coastguard Worker<!DOCTYPE module PUBLIC
3*89a63228SAndroid Build Coastguard Worker          "-//Checkstyle//DTD Checkstyle Configuration 1.3//EN"
4*89a63228SAndroid Build Coastguard Worker          "https://checkstyle.org/dtds/configuration_1_3.dtd">
5*89a63228SAndroid Build Coastguard Worker<!-- Copyright (C) 2019 The Android Open Source Project
6*89a63228SAndroid Build Coastguard Worker
7*89a63228SAndroid Build Coastguard Worker     Licensed under the Apache License, Version 2.0 (the "License");
8*89a63228SAndroid Build Coastguard Worker     you may not use this file except in compliance with the License.
9*89a63228SAndroid Build Coastguard Worker     You may obtain a copy of the License at
10*89a63228SAndroid Build Coastguard Worker
11*89a63228SAndroid Build Coastguard Worker          http://www.apache.org/licenses/LICENSE-2.0
12*89a63228SAndroid Build Coastguard Worker
13*89a63228SAndroid Build Coastguard Worker     Unless required by applicable law or agreed to in writing, software
14*89a63228SAndroid Build Coastguard Worker     distributed under the License is distributed on an "AS IS" BASIS,
15*89a63228SAndroid Build Coastguard Worker     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16*89a63228SAndroid Build Coastguard Worker     See the License for the specific language governing permissions and
17*89a63228SAndroid Build Coastguard Worker     limitations under the License.
18*89a63228SAndroid Build Coastguard Worker-->
19*89a63228SAndroid Build Coastguard Worker<!-- Ensures that files checked with this checker do not contain GPL
20*89a63228SAndroid Build Coastguard Worker     license text. This is done by searching for license name preceded by
21*89a63228SAndroid Build Coastguard Worker     comment asterisk:
22*89a63228SAndroid Build Coastguard Worker     " * ... GNU General Public License ..."
23*89a63228SAndroid Build Coastguard Worker-->
24*89a63228SAndroid Build Coastguard Worker
25*89a63228SAndroid Build Coastguard Worker<module name="Checker">
26*89a63228SAndroid Build Coastguard Worker  <property name="fileExtensions" value="java"/>
27*89a63228SAndroid Build Coastguard Worker
28*89a63228SAndroid Build Coastguard Worker  <module name="RegexpSingleline">
29*89a63228SAndroid Build Coastguard Worker    <property name="severity" value="error"/>
30*89a63228SAndroid Build Coastguard Worker    <property name="format" value="^\W+\*.*GNU General Public License.*$" />
31*89a63228SAndroid Build Coastguard Worker    <property name="message" value="files MUST NOT have GPL license"/>
32*89a63228SAndroid Build Coastguard Worker  </module>
33*89a63228SAndroid Build Coastguard Worker
34*89a63228SAndroid Build Coastguard Worker</module>
35