Open Bug 1366641 Opened 8 years ago Updated 2 years ago

Utilize lint baseline to block out long lasted unsolved lint problems

Categories

(Firefox Build System :: Android Studio and Gradle Integration, enhancement, P5)

55 Branch
All
Android
enhancement

Tracking

(Not tracked)

People

(Reporter: tyu, Unassigned)

References

Details

Attachments

(1 obsolete file)

With Gradle plugin 2.3 there is Baseline Support[1] (Take a snapshot for all errors and only complain about future errors not in this snapshot) Once we update our Gradle plugin, it could be worthy if we want to get lint errors back without thorough fix on Bug 1235670. [1] http://tools.android.com/tech-docs/lint-in-studio-2-3
Depends on: 1366644
This turns out to be frustratingly poorly implemented. There's a "absolutePaths false" option, but it only makes paths relative to mobile/android/app (the Gradle project root) relative. So all the paths in mobile/android/base are still absolute :( See the patches in https://bugzilla.mozilla.org/show_bug.cgi?id=1366644 for examples. So to use baseline, we'll need to normalize our source code, moving most of m/a/base into m/a/app.
Re-triaging per https://bugzilla.mozilla.org/show_bug.cgi?id=1473195 Needinfo :susheel if you think this bug should be re-triaged.
Priority: -- → P5
This is awkward. We have many lint errors, and most of them we are unlikely to address any time soon. We'd like to make them part of a lint "baseline" configuration and not think of them much again, but the configuration files include local paths. Therefore we do a little work to rewrite paths to be symbolic. This isn't maximally general: we might want to handle linting the `geckoview` project, and we might want to handle tasks for every Android variant; but those can follow as needed.
Product: Firefox for Android → Firefox Build System
Attachment #9035820 - Attachment is obsolete: true
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: