diff --git a/gradle/staticAnalysis.gradle b/gradle/staticAnalysis.gradle index e384207..35cb3c7 100644 --- a/gradle/staticAnalysis.gradle +++ b/gradle/staticAnalysis.gradle @@ -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) {