added android lint check options

This commit is contained in:
alex 2020-02-18 14:51:28 +03:00
parent ede5d3c902
commit 45e528c7f3
1 changed files with 13 additions and 0 deletions

View File

@ -81,6 +81,19 @@ gradle.projectsEvaluated {
}
}
if (subproject.plugins.hasPlugin("com.android.application")) {
subproject.android {
lintOptions.abortOnError = false
lintOptions.checkAllWarnings = true
lintOptions.warningsAsErrors = false
lintOptions.xmlReport = true
lintOptions.xmlOutput = file "$rootProject.buildDir/reports/lint_report.xml"
lintOptions.htmlReport = false
lintOptions.lintConfig = file "$buildScriptsDir/lint/lint.xml"
lintOptions.checkDependencies true
}
}
def regex = ~':detekt$'
tasks.forEach { task ->
if (!task.name.contains(":libs") && task.path =~ regex) {