move lint config to lint.xml to enable ignoring specific files

This commit is contained in:
Hans-Christoph Steiner 2017-05-10 13:45:50 +02:00
parent 151c83218c
commit 7702e72acb
2 changed files with 17 additions and 7 deletions

View File

@ -245,13 +245,7 @@ android {
xmlReport false
textReport false
// Our translations are crowd-sourced
disable 'MissingTranslation'
// to make CI fail on errors until this is fixed https://github.com/rtyley/spongycastle/issues/7
warning 'InvalidPackage', 'ImpliedQuantity'
error 'AppCompatMethod', 'NestedScrolling', 'StringFormatCount', 'UnsafeProtectedBroadcastReceiver'
lintConfig file("lint.xml")
}
packagingOptions {

16
app/lint.xml Normal file
View File

@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<lint>
<!-- Our translations are crowd-sourced -->
<issue id="MissingTranslation" severity="ignore"/>
<!-- to make CI fail on errors until this is fixed
https://github.com/rtyley/spongycastle/issues/7 -->
<issue id="InvalidPackage" severity="warning"/>
<issue id="ImpliedQuantity" severity="warning"/>
<!-- These are important to us, so promote from warning to error -->
<issue id="AppCompatMethod" severity="error"/>
<issue id="NestedScrolling" severity="error"/>
<issue id="StringFormatCount" severity="error"/>
<issue id="UnsafeProtectedBroadcastReceiver" severity="error"/>
</lint>