1<?xml version="1.0" encoding="utf-8"?> 2<lint> 3 <!-- These lint settings is for the Android linter that gets run by 4 lint_action.gypi on compile of WebRTC java code. All WebRTC java code 5 should lint cleanly for the issues below. --> 6 <!-- TODO(phoglund): make work with suppress.py or remove printout referring 7 to suppress.py. --> 8 9 <issue id="UseSparseArrays" severity="ignore"/> 10 11 <issue id="Registered" severity="ignore"/> 12 <issue id="MissingPermission" severity="ignore"/> 13 <issue id="ApplySharedPref" severity="ignore"/> 14 <issue id="UnusedResources" severity="ignore"/> 15 <issue id="IconColors" severity="ignore"/> 16 <issue id="IconDipSize" severity="ignore"/> 17 <issue id="IconDuplicatesConfig" severity="ignore"/> 18 <issue id="RelativeOverlap" severity="ignore"/> 19 <issue id="RtlCompat" severity="ignore"/> 20 <issue id="IconMissingDensityFolder" severity="ignore"/> 21 <issue id="OldTargetApi" severity="ignore"/> 22 23 <issue id="GoogleAppIndexingWarning" severity="ignore"/> 24 <issue id="MissingRegistered" severity="ignore"/> 25 <issue id="LintError"> 26 <!-- We no longer supply class files to lint. --> 27 <ignore regexp="No `.class` files were found in project"/> 28 </issue> 29 <!-- These are just from the dummy AndroidManifest.xml we use for linting. 30 It's in the same directory as this file. --> 31 <issue id="MissingApplicationIcon" severity="ignore"/> 32 <issue id="AllowBackup" severity="ignore"/> 33 <issue id="MissingVersion" severity="ignore"/> 34 35 <!-- Ignore all lint errors in Chromium code. --> 36 <issue id="all"> 37 <ignore path="**/org/chromium/**/*.java" /> 38 </issue> 39 40 <issue id="UsesMinSdkAttributes"> 41 <!-- TODO(oprypin): find a way to disable this warning just for Chromium's 42 code, not globally. Due to https://cs.chromium.org/lint_manifest_path 43 it is impossible to discern paths of AndroidManifest.xml files.--> 44 <ignore path="AndroidManifest.xml" /> 45 </issue> 46 47 <issue id="NewApi"> 48 <!-- This is rewritten by desugar after lint runs. --> 49 <ignore regexp="Call requires API level 19.*`java.util.Objects#requireNonNull`"/> 50 <!-- AutoCloseable has been available since API 15, just hidden. --> 51 <ignore regexp="Class requires API level 19.*java.lang.AutoCloseable"/> 52 <ignore regexp="Call requires API level 19.*java.lang.AutoCloseable#close"/> 53 <!-- We support try-with-resources via desugar. --> 54 <ignore regexp="Try-with-resources requires API level 19"/> 55 <ignore regexp="Call requires API level 19.*`java.lang.Throwable#addSuppressed`"/> 56 <!-- We support new language features via desugar. --> 57 <ignore regexp="Default method requires API level 24"/> 58 <ignore regexp="Static interface method requires API level 24"/> 59 </issue> 60 61</lint> 62