Home | History | Annotate | Download | only in lint
      1 <?xml version="1.0" encoding="UTF-8"?>
      2 <lint>
      3 
      4     <!-- Translations are done in separate CLs from source changes, so typically it's not actionable
      5          by CL authors -->
      6     <issue id="MissingTranslation" severity="ignore" />
      7     <issue id="ExtraTranslation" severity="ignore" />
      8 
      9     <!-- SystemUI is a priviledged app -->
     10     <issue id="ProtectedPermissions" severity="ignore" />
     11 
     12     <!-- SystemUI doesn't have launcher presence -->
     13     <issue id="MissingApplicationIcon" severity="ignore" />
     14 
     15     <!-- Make system inserts these attributes -->
     16     <issue id="UsesMinSdkAttributes" severity="ignore" />
     17     <issue id="MissingVersion" severity="ignore" />
     18 
     19     <!-- Translation import automatically generates all of them -->
     20     <issue id="UnusedQuantity" severity="ignore" />
     21     <!-- This lint check misses the format used in TextUtils.expandTemplate (^1),
     22          so it's not very useful (b/37128132) -->
     23     <issue id="ImpliedQuantity" severity="ignore" />
     24     <!-- SystemUI's SDK version is always latest so these are not relevant -->
     25     <issue id="UnusedAttribute" severity="ignore" />
     26     <issue id="NewApi" severity="ignore" />
     27 
     28     <!-- We don't care about WebP for now (having a lint for optiPNG will be great though) -->
     29     <issue id="ConvertToWebp" severity="ignore" />
     30 
     31     <!-- b/37129369: MissingRegistered doesn't take libraries into account -->
     32     <issue id="MissingRegistered" severity="ignore" />
     33 
     34 
     35     <!-- We don't care about app indexing -->
     36     <issue id="GoogleAppIndexingWarning" severity="ignore" />
     37     <issue id="GoogleAppIndexingUrlError" severity="ignore" />
     38 
     39     <!-- Issues under out/ typically comes from libraries -->
     40     <issue id="ClickableViewAccessibility" severity="error">
     41         <ignore regexp=".*/out/soong/.intermediates/frameworks/base/packages/SystemUI/SystemUI-core/android_common/combined/.*" />
     42     </issue>
     43 
     44     <!-- Turn on stop ship check -->
     45     <issue id="StopShip" severity="warning" />
     46 
     47 
     48     <issue id="UnusedResources" severity="error">
     49         <!-- Nested script references are not picked up by lint -->
     50         <ignore regexp="res/xml/wizard_script.*\.xml" />
     51         <!-- Ignore translation files -->
     52         <ignore regexp="res/values(-[a-zA-Z0-9]+)*-(\w\w|b+[a-zA-Z0-9+]+)(-[a-zA-Z0-9]+)*/strings.xml" />
     53         <!-- Ignore translations arrays that are no longer used-->
     54         <ignore regexp="res/values(-[a-zA-Z0-9]+)*-(\w\w|b+[a-zA-Z0-9+]+)(-[a-zA-Z0-9]+)*/arrays.xml" />
     55     </issue>
     56 
     57     <!-- Ignore translations when linting strings -->
     58     <issue id="TypographyQuotes" severity="error">
     59         <ignore regexp="res/values(-[a-zA-Z0-9]+)*-(\w\w|b+[a-zA-Z0-9+]+)(-[a-zA-Z0-9]+)*/strings.xml" />
     60         <ignore regexp="res/values(-[a-zA-Z0-9]+)*-(\w\w|b+[a-zA-Z0-9+]+)(-[a-zA-Z0-9]+)*/arrays.xml" />
     61     </issue>
     62     <issue id="TypographyEllipsis" severity="error">
     63         <ignore regexp="res/values(-[a-zA-Z0-9]+)*-(\w\w|b+[a-zA-Z0-9+]+)(-[a-zA-Z0-9]+)*/strings.xml" />
     64         <ignore regexp="res/values(-[a-zA-Z0-9]+)*-(\w\w|b+[a-zA-Z0-9+]+)(-[a-zA-Z0-9]+)*/arrays.xml" />
     65     </issue>
     66     <issue id="TypographyDashes" severity="error">
     67         <ignore regexp="res/values(-[a-zA-Z0-9]+)*-(\w\w|b+[a-zA-Z0-9+]+)(-[a-zA-Z0-9]+)*/strings.xml" />
     68         <ignore regexp="res/values(-[a-zA-Z0-9]+)*-(\w\w|b+[a-zA-Z0-9+]+)(-[a-zA-Z0-9]+)*/arrays.xml" />
     69     </issue>
     70 
     71     <issue id="Wakelock" severity="error">
     72         <ignore regexp=".*/out/soong/.intermediates/frameworks/base/packages/SystemUI/SystemUI-core/android_common/classes/android/support" />
     73     </issue>
     74 
     75     <issue id="InconsistentArrays" severity="ignore" />
     76     <issue id="StringFormatCount" severity="ignore" />
     77 </lint>
     78