1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-21 22:58:40 +00:00

Run lint in workflow

This commit is contained in:
M66B 2023-11-02 10:43:27 +01:00
parent f3e2cf9266
commit 637cf3aa36
2 changed files with 8 additions and 2 deletions

View file

@ -40,6 +40,8 @@ jobs:
gpg -d --passphrase "${PASSWORD}" --batch local.properties.asc > local.properties
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Check with Lint
run: ./gradlew lintGithubRelease
- name: Build with Gradle
run: ./gradlew assembleGithubRelease assembleLargeRelease assemblePlayRelease uploadBugsnagGithub-releaseMapping uploadBugsnagLarge-releaseMapping uploadBugsnagPlay-releaseMapping
- name: Upload to BitBucket

View file

@ -79,10 +79,14 @@ android {
}
lint {
abortOnError false
// https://developer.android.com/studio/write/lint
// https://developer.android.com/reference/tools/gradle-api/8.0/com/android/build/api/dsl/LintOptions
abortOnError true
checkReleaseBuilds false
checkDependencies false
disable 'MissingTranslation'
enable 'StringFormatInvalid'
fatal 'StringFormatInvalid', 'StringFormatMatches', 'StringFormatCount'
checkOnly 'StringFormatInvalid', 'StringFormatMatches', 'StringFormatCount'
}
compileOptions {