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