only disable lint in the basic flavor for UnusedResources

My hack before was actually always making exit with success, breaking the
CI runs :-/  I loathe gradle and groovy with a passion.
This commit is contained in:
Hans-Christoph Steiner 2018-08-08 11:45:52 +02:00
parent 3d05363c31
commit 0e368c6d6e
2 changed files with 2 additions and 6 deletions

View File

@ -179,12 +179,6 @@ dependencies {
androidTestImplementation 'com.android.support.test:rules:1.0.2' androidTestImplementation 'com.android.support.test:rules:1.0.2'
} }
tasks.whenTaskAdded { task ->
if (task.name.startsWith("lintBasic")) {
android.lintOptions.abortOnError = false
}
}
checkstyle { checkstyle {
toolVersion = '7.2' toolVersion = '7.2'
} }

View File

@ -15,6 +15,8 @@
<ignore path="src/main/res/drawable/category_**.png" /> <ignore path="src/main/res/drawable/category_**.png" />
<ignore path="src/main/res/values/dimens.xml"/> <ignore path="src/main/res/values/dimens.xml"/>
<ignore path="src/main/res/values/styles.xml"/> <ignore path="src/main/res/values/styles.xml"/>
<!-- keep a single strings.xml for all build flavors -->
<ignore path="src/main/res/values**/strings.xml"/>
</issue> </issue>
<issue id="AppCompatMethod" severity="error"/> <issue id="AppCompatMethod" severity="error"/>
<issue id="NestedScrolling" severity="error"/> <issue id="NestedScrolling" severity="error"/>