From 45e528c7f3274ff97e5facc1020f1b2180955868 Mon Sep 17 00:00:00 2001 From: alex Date: Tue, 18 Feb 2020 14:51:28 +0300 Subject: [PATCH] added android lint check options --- gradle/staticAnalysis.gradle | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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) {