Closed Bug 1956870 Opened 3 months ago Closed 2 months ago

Adding `gradlew lint` to `android-{fenix|focus|ac}` linters and reporting lint errors on phabricator

Categories

(Firefox for Android :: Tooling, enhancement)

All
Android
enhancement

Tracking

()

RESOLVED FIXED
140 Branch
Tracking Status
firefox140 --- fixed

People

(Reporter: adhingra, Assigned: adhingra)

References

Details

(Whiteboard: [fxdroid][group3])

Attachments

(4 files, 1 obsolete file)

No description provided.
Summary: Adding `gradlew lint` to `android-{fenix|focus|ac}` linters → Adding `gradlew lint` to `android-{fenix|focus|ac}` linters and reporting lint errors on phabricator

Currently CI runs android lint for android projects, but for developers to run lint locally they need to cd into the subdirectory and run gradlew lint. This bug adds gradlew lint to mach lint through the android-{fenix|focus|ac} linters in addition of ktlint and detekt which were added in [[ https://phabricator.services.mozilla.com/D216999 | D216999 ]]

This patch changes android lint configuration to generate JSON report of errors and then reads these errors in lints.py to report in the same format as other linters.

Attachment #9475412 - Attachment description: Bug 1956870 - Adding `gradlew lint` to `android-{fenix|focus|ac}` linters → WIP: Bug 1956870 - Increase scope of `android-lint` linter to run gradlew lint on all mobile projects and report errors on phabricator.

Currently CI runs android lint for android projects, but for developers to run lint locally they need to cd into the subdirectory and run gradlew lint. This bug adds gradlew lint to mach lint through the android-{fenix|focus|ac} linters in addition of ktlint and detekt which were added in [[ https://phabricator.services.mozilla.com/D216999 | D216999 ]]

This patch changes android lint configuration to generate JSON report of errors and then reads these errors in lints.py to report in the same format as other linters.

Attachment #9476081 - Attachment description: WIP: Bug 1956870 - Increase scope of `android-lint` linter to run gradlew lint on all mobile projects and report errors on phabricator. → WIP: Bug 1956870 - Adding `gradlew lint` to `android-{fenix|focus|ac}` linters and reporting lint errors on phabricator.
Attachment #9476081 - Attachment description: WIP: Bug 1956870 - Adding `gradlew lint` to `android-{fenix|focus|ac}` linters and reporting lint errors on phabricator. → Bug 1956870 - Adding `gradlew lint` to `android-{fenix|focus|ac}` linters and reporting lint errors on phabricator.
Attachment #9476081 - Attachment description: Bug 1956870 - Adding `gradlew lint` to `android-{fenix|focus|ac}` linters and reporting lint errors on phabricator. → WIP: Bug 1956870 - Adding `gradlew lint` to `android-{fenix|focus|ac}` linters and reporting lint errors on phabricator.
Attachment #9476081 - Attachment description: WIP: Bug 1956870 - Adding `gradlew lint` to `android-{fenix|focus|ac}` linters and reporting lint errors on phabricator. → Bug 1956870 - Adding `gradlew lint` to `android-{fenix|focus|ac}` linters and reporting lint errors on phabricator.
Attachment #9486088 - Attachment is obsolete: true
Pushed by adhingra@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/39504fa76230 Adding `gradlew lint` to `android-{fenix|focus|ac}` linters and reporting lint errors on phabricator. r=android-reviewers,nalexander
Status: ASSIGNED → RESOLVED
Closed: 2 months ago
Resolution: --- → FIXED
Target Milestone: --- → 140 Branch
Duplicate of this bug: 1963971
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: