Merge pull request #334 from TouchInstinct/add_lint_report_check

update BuildScripts to include copy task in AndroidLinter.kt
This commit is contained in:
kostikum 2023-02-07 16:03:20 +07:00 committed by GitHub
commit 03b0d3a793
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 3 deletions

View File

@ -48,11 +48,14 @@ class AndroidLinter : Linter {
.mapNotNull { subproject: Project ->
subproject
.tasks
.find { task -> task.name.equals("lint$buildType", ignoreCase = true) }
?.path
.filter { task ->
task.name.equals("lint${buildType}", ignoreCase = true)
|| task.name.equals("copy${buildType}AndroidLintReports", ignoreCase = true)
}
.map { it.path }
}
.flatten()
}
private fun Project.getLintReportFile() = file("${rootProject.buildDir}/reports/lint-report.xml")
}