blob: faf3e34d24174ca6782b3b4005dfa52dfce70f28 [file] [log] [blame]
Owen Grayea8615e2019-08-07 15:41:35 -04001<?xml version="1.0" encoding="UTF-8"?>
Alan Viverettedbeaff02021-11-18 12:51:43 -05002<!--
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<!--
Julia McClellane953dbf2024-11-20 13:14:28 -050019 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
Alan Viverettedbeaff02021-11-18 12:51:43 -050022 -->
Owen Grayea8615e2019-08-07 15:41:35 -040023<lint>
24 <issue id="LintBaseline" severity="ignore">
25 <ignore regexp=".* filtered out because .* listed in the baseline file.*"/>
26 </issue>
Alan Viverette01d05de2021-06-10 10:42:05 -040027 <!-- Disable all lint checks on tests by default. -->
28 <issue id="all">
29 <ignore path="**/src/test/**" />
30 <ignore path="**/src/androidTest/**" />
31 <!-- Required for Kotlin multi-platform tests. -->
Fred Sladkeyd2ea9cf2023-08-17 21:19:01 -040032 <ignore path="**/src/androidInstrumentedTest/**" />
33 <ignore path="**/src/androidUnitTest/**" />
Alexander Gorshenevc40deb72022-01-25 20:24:06 +030034 <ignore path="**/src/jvmTest/**" />
35 <ignore path="**/src/commonTest/**" />
Owen Grayfb2e8392024-09-10 11:27:59 -040036 <ignore path="**/src/nonEmulatorJvmTest/**" />
Alan Viverette01d05de2021-06-10 10:42:05 -040037 <!-- Required for AppSearch icing tests. -->
38 <ignore path="**/java/tests/**" />
39 </issue>
Alan Viverette10351282021-08-04 17:05:29 -040040 <!-- Re-enable high-priority checks for tests (and everything else). -->
Aurimas Liutikas6e4ecf72023-02-22 17:33:52 -080041 <issue id="BanThreadSleep" severity="fatal" />
Alan Viverette01d05de2021-06-10 10:42:05 -040042 <issue id="NewApi" severity="fatal" />
Alan Viverette10351282021-08-04 17:05:29 -040043 <issue id="WrongThread" severity="fatal" />
Jeff Gaston56033402021-10-13 11:19:42 -040044 <issue id="MissingTestSizeAnnotation" severity="fatal" />
Julia McClellanf2f07aa2022-06-09 10:08:09 -040045 <issue id="IgnoreClassLevelDetector" severity="fatal" />
omarismailcd373172024-02-20 13:42:19 +000046 <issue id="WithPluginClasspathUsage" severity="fatal" />
Julia McClelland95c2bf2024-09-06 09:09:49 -040047 <issue id="AutoValueNullnessOverride" severity="fatal" />
Yigit Boyare308e502023-05-22 11:08:43 -070048 <!-- Disable all lint checks on transformed classes by default. b/283812176 -->
Alan Viverette9d651362023-03-23 12:34:03 -040049 <issue id="all">
50 <ignore path="**/.transforms/**" />
Yigit Boyare308e502023-05-22 11:08:43 -070051 <!-- playground builds have dependency files in "transformed" instead of ".transforms" -->
52 <ignore path="**/.gradle/**/transforms*/**/transformed/**" />
Alan Viverette9d651362023-03-23 12:34:03 -040053 </issue>
Hazem Ashmawy821e4fa2019-10-21 21:45:28 +010054</lint>