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 <!-- Note: we include Java and C files from upstream. There are generated .h files and .cpp 19*89a63228SAndroid Build Coastguard Worker files from Android that don't fit the pattern used to check for the upstream license. --> 20*89a63228SAndroid Build Coastguard Worker <property name="fileExtensions" value="java, c" /> 21*89a63228SAndroid Build Coastguard Worker <module name="RegexpHeader"> 22*89a63228SAndroid Build Coastguard Worker <property name="severity" value="error" /> 23*89a63228SAndroid Build Coastguard Worker <property name="headerFile" value="tools/checkstyle/openjdk-gplv2-plus-classpath-copyright.pattern" /> 24*89a63228SAndroid Build Coastguard Worker <property name="multiLines" value="2,3,4,5" /> 25*89a63228SAndroid Build Coastguard Worker </module> 26*89a63228SAndroid Build Coastguard Worker <!-- The following files have Android GPL+classpath headers, not upstream. 27*89a63228SAndroid Build Coastguard Worker One filter per pattern is required. --> 28*89a63228SAndroid Build Coastguard Worker <module name="BeforeExecutionExclusionFileFilter"> 29*89a63228SAndroid Build Coastguard Worker <property name="fileNamePattern" 30*89a63228SAndroid Build Coastguard Worker value="ojluni/src/main/java/java/lang/invoke/(MethodHandleImpl.java|Transformers.java)" /> 31*89a63228SAndroid Build Coastguard Worker </module> 32*89a63228SAndroid Build Coastguard Worker <module name="BeforeExecutionExclusionFileFilter"> 33*89a63228SAndroid Build Coastguard Worker <property name="fileNamePattern" 34*89a63228SAndroid Build Coastguard Worker value="ojluni/src/main/java/(java/time/zone/IcuZoneRulesProvider.java|sun/nio/ch/FileDescriptorHolderSocketImpl.java)" /> 35*89a63228SAndroid Build Coastguard Worker </module> 36*89a63228SAndroid Build Coastguard Worker <module name="BeforeExecutionExclusionFileFilter"> 37*89a63228SAndroid Build Coastguard Worker <property name="fileNamePattern" 38*89a63228SAndroid Build Coastguard Worker value="ojluni/src/main/native/Math.c" /> 39*89a63228SAndroid Build Coastguard Worker </module> 40*89a63228SAndroid Build Coastguard Worker <!-- File from upstream with formatting that doesn't fit our pattern. --> 41*89a63228SAndroid Build Coastguard Worker <module name="BeforeExecutionExclusionFileFilter"> 42*89a63228SAndroid Build Coastguard Worker <property name="fileNamePattern" 43*89a63228SAndroid Build Coastguard Worker value="ojluni/src/main/java/sun/util/locale/UnicodeLocaleExtension.java" /> 44*89a63228SAndroid Build Coastguard Worker </module> 45*89a63228SAndroid Build Coastguard Worker <!-- Deprecated AOSP sources in ojluni/annotations/hiddenapi. --> 46*89a63228SAndroid Build Coastguard Worker <module name="BeforeExecutionExclusionFileFilter"> 47*89a63228SAndroid Build Coastguard Worker <property name="fileNamePattern" 48*89a63228SAndroid Build Coastguard Worker value="ojluni/annotations/hiddenapi/sun/security/x509/AVA(Comparator|Keyword).java" /> 49*89a63228SAndroid Build Coastguard Worker </module> 50*89a63228SAndroid Build Coastguard Worker <module name="BeforeExecutionExclusionFileFilter"> 51*89a63228SAndroid Build Coastguard Worker <property name="fileNamePattern" 52*89a63228SAndroid Build Coastguard Worker value="ojluni/annotations/hiddenapi/sun/security/util/MemoryCache.java" /> 53*89a63228SAndroid Build Coastguard Worker </module> 54*89a63228SAndroid Build Coastguard Worker</module> 55