1<?xml version="1.0" encoding="UTF-8"?> 2<!-- 3 Copyright 2021 The Android Open Source Project 4 5 Licensed under the Apache License, Version 2.0 (the "License"); 6 you may not use this file except in compliance with the License. 7 You may obtain a copy of the License at 8 9 http://www.apache.org/licenses/LICENSE-2.0 10 11 Unless required by applicable law or agreed to in writing, software 12 distributed under the License is distributed on an "AS IS" BASIS, 13 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 See the License for the specific language governing permissions and 15 limitations under the License. 16 --> 17 18<!-- 19 Project-specific lint configuration can be created with a `lint.xml` in the project directory. 20 That configuration will be applied in addition to this file. The precedence order is described in 21 https://googlesamples.github.io/android-custom-lint-rules/usage/lintxml.md.html 22 --> 23<lint> 24 <issue id="LintBaseline" severity="ignore"> 25 <ignore regexp=".* filtered out because .* listed in the baseline file.*"/> 26 </issue> 27 <!-- Enable certain lint checks on tests which don't run on test scope by default. --> 28 <issue id="NewApi" severity="fatal" tests="true" /> 29 <issue id="WrongThread" severity="fatal" tests="true" /> 30 <!-- 31 NewApi and ObsoleteSdkInt are implemented with the same detector. NewApi is enabled for tests 32 above, so ObsoleteSdkInt implicitly also is because the detector is running on tests. Set the 33 issue to ignore test paths since it isn't needed for tests. 34 --> 35 <issue id="ObsoleteSdkInt"> 36 <ignore path="**/src/test/**" /> 37 <ignore path="**/src/androidTest/**" /> 38 <!-- Required for Kotlin multi-platform tests. --> 39 <ignore path="**/src/androidInstrumentedTest/**" /> 40 <ignore path="**/src/androidUnitTest/**" /> 41 </issue> 42 <!-- Disable all lint checks on transformed classes by default. b/283812176 --> 43 <issue id="all"> 44 <ignore path="**/.transforms/**" /> 45 <!-- playground builds have dependency files in "transformed" instead of ".transforms" --> 46 <ignore path="**/.gradle/**/transforms*/**/transformed/**" /> 47 </issue> 48</lint> 49