feat(build): rework Lint config

- Export SARIF output
- Expand enabled ruleset
- Make HTML reports more detailed
This commit is contained in:
Harsh Shandilya 2023-04-19 15:19:15 +05:30
parent 009744cb47
commit 468d363c65
No known key found for this signature in database

View file

@ -70,9 +70,19 @@ class AndroidCommonPlugin : Plugin<Project> {
}
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")