From 468d363c65d8ce2d4b1747da56800f6a0bebd496 Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Wed, 19 Apr 2023 15:19:15 +0530 Subject: [PATCH] feat(build): rework Lint config - Export SARIF output - Expand enabled ruleset - Make HTML reports more detailed --- .../dev/msfjarvis/claw/gradle/AndroidCommonPlugin.kt | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/build-logic/src/main/kotlin/dev/msfjarvis/claw/gradle/AndroidCommonPlugin.kt b/build-logic/src/main/kotlin/dev/msfjarvis/claw/gradle/AndroidCommonPlugin.kt index 8aa47f50..13bf0430 100644 --- a/build-logic/src/main/kotlin/dev/msfjarvis/claw/gradle/AndroidCommonPlugin.kt +++ b/build-logic/src/main/kotlin/dev/msfjarvis/claw/gradle/AndroidCommonPlugin.kt @@ -70,9 +70,19 @@ class AndroidCommonPlugin : Plugin { } private fun Lint.configureLint(project: Project) { + quiet = project.providers.environmentVariable("CI").isPresent abortOnError = true checkReleaseBuilds = true warningsAsErrors = true + ignoreWarnings = false + checkAllWarnings = true + noLines = false + showAll = true + explainIssues = true + textReport = false + xmlReport = false + htmlReport = true + sarifReport = true enable += "ComposeM2Api" error += "ComposeM2Api" baseline = project.file("lint-baseline.xml")