Check Lint recursively from the :app module

instead of checking every module individually. This avoids having to
re-state all disabled Lint checks in all parent modules.
This commit is contained in:
ByteHamster 2022-11-06 11:55:20 +01:00
parent e4d4c69519
commit d61745be86
5 changed files with 2 additions and 29 deletions

View File

@ -57,8 +57,8 @@ jobs:
~/.gradle/caches ~/.gradle/caches
~/.gradle/wrapper ~/.gradle/wrapper
key: gradle-${{ hashFiles('**/*.gradle*') }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }} key: gradle-${{ hashFiles('**/*.gradle*') }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}
- name: Lint - name: Lint :app module recursively
run: ./gradlew lintPlayRelease lintRelease run: ./gradlew :app:lintPlayRelease
- name: SpotBugs - name: SpotBugs
run: ./gradlew spotbugsPlayDebug spotbugsDebug 2>&1 | grep -i "spotbugs" run: ./gradlew spotbugsPlayDebug spotbugsDebug 2>&1 | grep -i "spotbugs"

View File

@ -14,11 +14,6 @@ android {
buildConfigField "String", "PODCASTINDEX_API_SECRET", '"XAaAhk4^2YBsTE33vdbwbZNj82ZRLABDDqFdKe7x"' buildConfigField "String", "PODCASTINDEX_API_SECRET", '"XAaAhk4^2YBsTE33vdbwbZNj82ZRLABDDqFdKe7x"'
} }
} }
lintOptions {
disable 'InvalidPeriodicWorkRequestInterval', 'MissingPermission',
'GradleCompatible', 'AppCompatResource', 'QueryPermissionsNeeded'
}
} }
dependencies { dependencies {

View File

@ -3,12 +3,6 @@ plugins {
} }
apply from: "../../common.gradle" apply from: "../../common.gradle"
android {
lintOptions {
disable "TrustAllX509TrustManager"
}
}
dependencies { dependencies {
implementation project(':model') implementation project(':model')

View File

@ -4,15 +4,6 @@ plugins {
apply from: "../../common.gradle" apply from: "../../common.gradle"
apply from: "../../playFlavor.gradle" apply from: "../../playFlavor.gradle"
android {
lintOptions {
disable "InvalidPeriodicWorkRequestInterval", "ObsoleteLintCustomCheck", "DefaultLocale", "UnusedAttribute",
"ParcelClassLoader", "CheckResult", "TrustAllX509TrustManager",
"StaticFieldLeak", "IconDensities", "IconDuplicates", "MissingPermission", "AppCompatResource",
"GradleCompatible", "QueryPermissionsNeeded"
}
}
dependencies { dependencies {
implementation project(":model") implementation project(":model")
implementation project(":core") implementation project(":core")

View File

@ -4,13 +4,6 @@ plugins {
apply from: "../../common.gradle" apply from: "../../common.gradle"
apply from: "../../playFlavor.gradle" apply from: "../../playFlavor.gradle"
android {
lintOptions {
disable "InvalidPeriodicWorkRequestInterval", "MissingPermission", "GradleCompatible",
"QueryPermissionsNeeded", "Overdraw", "SetTextI18n", "RtlHardcoded"
}
}
dependencies { dependencies {
implementation project(":core") implementation project(":core")
implementation project(":event") implementation project(":event")