added android lint check options
This commit is contained in:
parent
ede5d3c902
commit
45e528c7f3
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue