Alan Viverette | dbeaff0 | 2021-11-18 12:51:43 -0500 | [diff] [blame^] | 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 | This configuration is applied to LibraryType.SAMPLES projects which must run |
| 20 | specific lint checks on dependencies, but don't want the full suite running. |
| 21 | --> |
| 22 | <lint> |
| 23 | <issue id="LintBaseline" severity="ignore"> |
| 24 | <ignore regexp=".* filtered out because .* listed in the baseline file.*"/> |
| 25 | </issue> |
| 26 | <!-- Disable all lint checks in non-sample projects. --> |
| 27 | <issue id="all"> |
| 28 | <ignore regexp="^((?!samples).)*$" /> |
| 29 | </issue> |
| 30 | <!-- Re-enable sampled lint checks for all projects. --> |
| 31 | <issue id="InvalidSamplesLocation" severity="fatal" /> |
| 32 | <issue id="MultipleSampledFunctions" severity="fatal" /> |
| 33 | <issue id="UnresolvedSampleLink" severity="fatal" /> |
| 34 | <issue id="ObsoleteSampledAnnotation" severity="fatal" /> |
| 35 | </lint> |