tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

lint.xml (5068B)


      1 <?xml version="1.0" encoding="UTF-8"?>
      2 <!-- This Source Code Form is subject to the terms of the Mozilla Public
      3   - License, v. 2.0. If a copy of the MPL was not distributed with this
      4   - file, You can obtain one at http://mozilla.org/MPL/2.0/. -->
      5 <lint>
      6    <issue id="InvalidPackage">
      7        <!-- The Sentry SDK is compiled against parts of the Java SDK that are not available in the Android SDK.
      8             Let's just ignore issues in the Sentry code since that is a third-party dependency anyways. -->
      9        <ignore path="**/sentry*.jar" />
     10    </issue>
     11 
     12    <!-- Lints that don't apply to our translation process -->
     13    <issue id="MissingTranslation" severity="ignore" />
     14    <issue id="MissingQuantity" severity="ignore" />
     15    <issue id="PluralsCandidate" severity="ignore" />
     16    <issue id="StringFormatCount" severity="ignore" />
     17    <issue id="TypographyEllipsis" severity="ignore" />
     18    <issue id="ExtraTranslation" severity="ignore" />
     19    <issue id="MissingDefaultResource" severity="ignore" />
     20    <issue id="BrandUsage" severity="error">
     21        <ignore path="**/values-*/strings.xml" />
     22        <ignore path="**/values-*/*_strings.xml" />
     23        <ignore path="**/values/*_strings.xml" />
     24    </issue>
     25    <issue id="IncorrectStraightQuote" severity="error">
     26        <ignore path="**/values-*/strings.xml" />
     27    </issue>
     28    <issue id="IncorrectStraightDoubleQuote" severity="error">
     29        <ignore path="**/values-*/strings.xml" />
     30        <ignore path="**/values/*_strings.xml" />
     31        <ignore path="**/values/arrays.xml" />
     32    </issue>
     33    <issue id="IncorrectEllipsisCharacter" severity="error">
     34        <ignore path="**/values-*/strings.xml" />
     35    </issue>
     36    <issue id="BlankString" severity="error">
     37        <ignore path="**/values-*/strings.xml" />
     38        <ignore path="**/values/*_strings.xml" />
     39    </issue>
     40    <issue id="PlaceholderComment" severity="error">
     41        <ignore path="**/values-*/strings.xml" />
     42        <ignore path="**/values/*_strings.xml" />
     43    </issue>
     44    <issue id="Typos" severity="error">
     45        <ignore path="**/values-*/strings.xml" />
     46    </issue>
     47 
     48    <!-- Lints that are disabled by default -->
     49    <issue id="ConvertToWebp" severity="warning" />
     50 
     51    <!-- Performance: we haven't validated that addressing these checks have a significant impact
     52         on performance but they're very quick to fix so we escalate them to error. -->
     53    <!-- Performance: big wins from a theoretical perspective so we escalate to error. -->
     54    <issue id="DrawAllocation" severity="error" />
     55    <issue id="Wakelock" severity="error" />
     56    <issue id="WakelockTimeout" severity="error" />
     57    <issue id="Recycle" severity="error" />
     58    <issue id="StaticFieldLeak" severity="error" />
     59    <issue id="ViewTag" severity="error" />
     60    <issue id="ViewHolder" severity="error" />
     61    <issue id="HandlerLeak" severity="error" />
     62    <issue id="NestedWeights" severity="error" />
     63 
     64    <!-- Performance: quick-to-fix violations so we escalate to error.
     65         We haven't validated that they have a significant impact though. -->
     66    <issue id="ObsoleteLayoutParam" severity="error" />
     67    <issue id="ObsoleteSdkInt" severity="error" />
     68    <issue id="AnimatorKeep" severity="error" />
     69    <issue id="DuplicateDivider" severity="error" />
     70    <issue id="MergeRootFrame" severity="error" />
     71    <issue id="UseOfBundledGooglePlayServices" severity="error" />
     72    <issue id="UseValueOf" severity="error" />
     73    <issue id="InefficientWeight" severity="error" />
     74    <issue id="DisableBaselineAlignment" severity="error" />
     75    <issue id="UselessLeaf" severity="error" />
     76    <issue id="UselessParent" severity="error" />
     77    <issue id="UnusedNamespace" severity="error" />
     78    <issue id="UnusedResources" severity="error">
     79        <!-- Using an automated process to remove localized strings after they are removed from the default strings.xml
     80        means the files for localized strings will contain unused resources for a few days after the original removal operation. -->
     81        <ignore path="**/values-*/strings.xml" />
     82    </issue>
     83    <issue id="UseCompoundDrawables" severity="error" />
     84 
     85    <!-- Performance: checks we'd like to eventually set to error. -->
     86    <issue id="Overdraw" severity="warning" />
     87 
     88    <!-- Performance: checks that we're unsure of the value of that we might want to investigate. -->
     89    <issue id="UnpackedNativeCode" severity="informational" />
     90    <issue id="LogConditional" severity="informational" />
     91    <issue id="UseSparseArrays" severity="informational" /> <!-- hurts developer convenience of kotlin Map... -->
     92    <issue id="TooDeepLayout" severity="warning" /> <!-- depth can be customized -->
     93    <issue id="TooManyViews" severity="warning" /> <!-- view count can be customized -->
     94 
     95    <!-- Ignore due to baseline bloat and lack of actionability -->
     96    <issue id="VectorPath" severity="ignore" />
     97 
     98    <!-- Correctness: checks with increased severity -->
     99    <issue id="ModifierParameter" severity="error" />
    100    <issue id="PrivateResource" severity="error" />
    101 </lint>