Skip to content

Commit 04ddc86

Browse files
committed
Enable checkDependencies and run lint tasks on project roots
1 parent 62db986 commit 04ddc86

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/Build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ jobs:
5656
path: '**/build/test-results/test*UnitTest/**.xml'
5757

5858
- name: Check lint
59-
run: ./gradlew lintProdRelease
59+
run: ./gradlew :app:lintProdRelease :app-nia-catalog:lintRelease :lint:lint
6060

6161
- name: Upload lint reports (HTML)
6262
if: always()

build-logic/convention/src/main/kotlin/AndroidLintConventionPlugin.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
*/
1616

1717
import com.android.build.api.dsl.ApplicationExtension
18+
import com.android.build.api.dsl.LibraryExtension
1819
import com.android.build.api.dsl.Lint
19-
import com.android.build.gradle.LibraryExtension
2020
import org.gradle.api.Plugin
2121
import org.gradle.api.Project
2222
import org.gradle.kotlin.dsl.configure
@@ -43,4 +43,5 @@ class AndroidLintConventionPlugin : Plugin<Project> {
4343
private fun Lint.configure() {
4444
xmlReport = true
4545
sarifReport = true
46+
checkDependencies = true
4647
}

0 commit comments

Comments
 (0)