Skip to content

Commit

Permalink
Add lint to CI (#1975)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcosholgado authored Jun 2, 2022
1 parent 1cee050 commit b0f0fc2
Show file tree
Hide file tree
Showing 53 changed files with 8,016 additions and 8,027 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,6 @@ jobs:
java-version: '11'
distribution: 'adopt'

- name: Spotless
run: ./gradlew spotlessCheck --stacktrace

- name: JVM checks
run: ./gradlew jvm_checks

Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@ jobs:
- name: Grant execute permission for gradlew
run: chmod +x gradlew

- name: Spotless
run: ./gradlew spotlessCheck --stacktrace

- name: JVM checks
run: ./gradlew jvm_checks

Expand Down
4 changes: 4 additions & 0 deletions anrs/anrs-api/lint-baseline.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<issues format="6" by="lint 7.0.4" type="baseline" client="gradle" name="AGP (7.0.4)" variant="all" version="7.0.4">

</issues>
4 changes: 4 additions & 0 deletions anrs/anrs-impl/lint-baseline.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<issues format="6" by="lint 7.0.4" type="baseline" client="gradle" name="AGP (7.0.4)" variant="all" version="7.0.4">

</issues>
4 changes: 4 additions & 0 deletions anrs/anrs-store/lint-baseline.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<issues format="6" by="lint 7.0.4" type="baseline" client="gradle" name="AGP (7.0.4)" variant="all" version="7.0.4">

</issues>
4 changes: 4 additions & 0 deletions app-store/lint-baseline.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<issues format="6" by="lint 7.0.4" type="baseline" client="gradle" name="AGP (7.0.4)" variant="all" version="7.0.4">

</issues>
3 changes: 2 additions & 1 deletion app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ android {
}
}
lintOptions {
disable 'ObsoleteLintCustomCheck'
abortOnError true
baseline file("lint-baseline.xml")
}
Expand Down Expand Up @@ -326,7 +327,7 @@ tasks.register('android_checks') {
}

tasks.register('jvm_checks') {
dependsOn 'spotlessCheck', 'testPlayDebugUnitTest'
dependsOn 'spotlessCheck', 'lint', 'testPlayDebugUnitTest'
}

tasks.register('androidTestsBuild') {
Expand Down
Loading

0 comments on commit b0f0fc2

Please sign in to comment.