firefox-android: fix lint errors on mozilla-central
Categories
(Release Engineering :: General, task, P3)
Tracking
(firefox114 fixed, firefox126 fixed)
People
(Reporter: gbrown, Assigned: jcristau)
References
Details
Attachments
(25 files, 11 obsolete files)
59 bytes,
text/x-github-pull-request
|
Details | Review | |
59 bytes,
text/x-github-pull-request
|
Details | Review | |
59 bytes,
text/x-github-pull-request
|
Details | Review | |
59 bytes,
text/x-github-pull-request
|
Details | Review | |
59 bytes,
text/x-github-pull-request
|
Details | Review | |
59 bytes,
text/x-github-pull-request
|
Details | Review | |
59 bytes,
text/x-github-pull-request
|
Details | Review | |
59 bytes,
text/x-github-pull-request
|
Details | Review | |
59 bytes,
text/x-github-pull-request
|
Details | Review | |
59 bytes,
text/x-github-pull-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review | |
48 bytes,
text/x-phabricator-request
|
Details | Review |
When firefox-android code is linted on oak, we see a variety of lint failures:
https://treeherder.mozilla.org/logviewer?job_id=410470235&repo=oak
https://treeherder.mozilla.org/logviewer?job_id=410470218&repo=oak
https://treeherder.mozilla.org/logviewer?job_id=410470230&repo=oak
https://treeherder.mozilla.org/logviewer?job_id=410470195&repo=oak
https://treeherder.mozilla.org/logviewer?job_id=410470216&repo=oak
https://treeherder.mozilla.org/logviewer?job_id=410470196&repo=oak
If there are conflicts between lint rules on github vs mozilla-central, these changes might need to be finalized after firefox-android is migrated to mozilla-central, but I'm also seeing some clear wins that could be made now.
![]() |
Reporter | |
Updated•2 years ago
|
Comment 1•2 years ago
|
||
![]() |
Reporter | |
Updated•2 years ago
|
Comment 2•2 years ago
|
||
Authored by https://github.com/gbrownmozilla
https://github.com/mozilla-mobile/firefox-android/commit/25869379daab6106706b58ecd3da1de83481df83
[main] Bug 1825116 - Resolve many black, isort, and file-whitespace lint issues
![]() |
Reporter | |
Updated•2 years ago
|
Comment 3•2 years ago
|
||
Comment 4•2 years ago
|
||
Authored by https://github.com/gbrownmozilla
https://github.com/mozilla-mobile/firefox-android/commit/8d102332c9707c4f0ef33d5db4eac3a125c2acfc
[main] Bug 1825116 - Fix spelling errors found by codespell linter
Authored by https://github.com/gbrownmozilla
https://github.com/mozilla-mobile/firefox-android/commit/ecbb6766ef4038044c23adc46bf9740be6b02d9d
[main] Bug 1825116 - Resolve some warnings found by the rejected-words linter
Comment 5•2 years ago
|
||
![]() |
Reporter | |
Comment 6•2 years ago
•
|
||
Notes from review of #1637:
- strings.xml (majority of license violations) will need to be handled via https://github.com/mozilla-l10n/android-l10n/issues/645 or excluded
- we will likely need to add a license linter exclusion for res/drawable/ ic_cc_*.xml -- credit card logos
Comment 7•2 years ago
|
||
Authored by https://github.com/gbrownmozilla
https://github.com/mozilla-mobile/firefox-android/commit/487bc890e4fd221ea90209034c522d54ab237284
[main] Bug 1825116 - Add license notice where missing (#1637)
![]() |
Reporter | |
Comment 8•2 years ago
|
||
I think that's about all I can do for now. Many lint failures remain, and more will inevitably be added while f-a is on github; we should revisit these issues closer to the actual migration.
One way forward would be to add exclusions (eg https://searchfox.org/mozilla-central/rev/31f5847a4494b3646edabbdd7ea39cb88509afe2/tools/lint/license.yml#6) for mobile/android/android-components|focus-android|fenix to all of the problematic linters, then work to resolve those after the migration.
![]() |
Reporter | |
Comment 9•2 years ago
|
||
There are still a few failures seen on oak:
I see a few more we can address on firefox-android...
Comment 10•2 years ago
|
||
Comment 11•2 years ago
|
||
Authored by https://github.com/gbrownmozilla
https://github.com/mozilla-mobile/firefox-android/commit/83e0bbb793c5f4b2297454bc3236f432c69fe3e6
[main] Bug 1825116 - Reformat some python files with black and avoid 'bare except' ruff warnings
Updated•2 years ago
|
Comment 12•1 years ago
|
||
Comment 13•1 years ago
|
||
Comment 14•1 years ago
|
||
Comment 15•1 years ago
|
||
Authored by https://github.com/jcristau
https://github.com/mozilla-mobile/firefox-android/commit/7945db4041b32e35cf6aa0ed8b38d1abae5bfe77
[main] Bug 1825116 - fix a couple of typos
Comment 16•1 years ago
|
||
Authored by https://github.com/jcristau
https://github.com/mozilla-mobile/firefox-android/commit/2fc2fcf3afbf080919346524e01f3be713e96bdd
[main] Bug 1825116 - add missing MPL header to upstream_artifacts transform
Comment 17•1 years ago
|
||
Comment 18•1 years ago
|
||
Authored by https://github.com/jcristau
https://github.com/mozilla-mobile/firefox-android/commit/0d33e82ac349ae7b807c7db3392272584fc73c9e
[main] Bug 1825116 - add license info to animated_splash_screen.xml
Comment 19•1 years ago
|
||
Authored by https://github.com/jcristau
https://github.com/mozilla-mobile/firefox-android/commit/411697306b211268c347d9a173073ec3c42a1660
[main] Bug 1825116 - delete trailing whitespace from docs
Comment 20•1 year ago
|
||
Comment 21•1 year ago
|
||
Authored by https://github.com/gbrownmozilla
https://github.com/mozilla-mobile/firefox-android/commit/bd7fff165063c3a84dd893ad7790186e20da587e
[main] Bug 1825116 - Resolve many lint issues found on oak (#4551)
Comment 22•1 year ago
|
||
Comment 23•1 year ago
|
||
Authored by https://github.com/gbrownmozilla
https://github.com/mozilla-mobile/firefox-android/commit/49c4291d440e631fe2c737a6b7b0bf1f7ac85232
[main] Bug 1825116 - Consolidate attributes in build-apk kind.yml (#4579)
Assignee | ||
Comment 24•1 year ago
|
||
Updated•1 year ago
|
Assignee | ||
Comment 25•1 year ago
|
||
Assignee | ||
Comment 26•1 year ago
|
||
Generated by
./mach lint -l black --fix taskcluster/android_taskgraph/ taskcluster/scripts/lint/ taskcluster/scripts/write-dummy-secret.py mobile/android/fenix/app/src/androidTest/java/org/mozilla/fenix/experimentintegration/conftest.py mobile/android/fenix/automation/taskcluster/androidTest/parse-ui-test-fromfile.py mobile/android/focus-android/automation/taskcluster/androidTest/parse-ui-test*
Assignee | ||
Comment 27•1 year ago
|
||
Generated with:
./mach lint -l ruff --fix taskcluster/android_taskgraph
Assignee | ||
Comment 28•1 year ago
|
||
./mach lint -l ruff --fix mobile/android/fenix/app/src/androidTest/java/org/mozilla/fenix/experimentintegration/conftest.py
Assignee | ||
Comment 29•1 year ago
|
||
Assignee | ||
Comment 30•1 year ago
|
||
Assignee | ||
Comment 31•1 year ago
|
||
Assignee | ||
Comment 32•1 year ago
|
||
Assignee | ||
Comment 33•1 year ago
|
||
Assignee | ||
Comment 34•1 year ago
|
||
Assignee | ||
Comment 35•1 year ago
|
||
Assignee | ||
Comment 36•1 year ago
|
||
Assignee | ||
Comment 37•1 year ago
|
||
Assignee | ||
Comment 38•1 year ago
|
||
Assignee | ||
Comment 39•1 year ago
|
||
Assignee | ||
Comment 40•1 year ago
|
||
Assignee | ||
Comment 41•1 year ago
|
||
Assignee | ||
Comment 42•1 year ago
|
||
Assignee | ||
Comment 43•1 year ago
|
||
Assignee | ||
Comment 44•1 year ago
|
||
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Updated•1 year ago
|
Assignee | ||
Comment 45•1 year ago
|
||
Updated•1 year ago
|
Assignee | ||
Comment 46•1 year ago
|
||
Assignee | ||
Comment 47•1 year ago
|
||
Assignee | ||
Comment 48•1 year ago
|
||
Updated•1 year ago
|
![]() |
Reporter | |
Comment 49•1 year ago
|
||
Assignee | ||
Updated•1 year ago
|
Assignee | ||
Comment 50•1 year ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/f3c26d856e30
https://hg.mozilla.org/mozilla-central/rev/35db8d23936d
https://hg.mozilla.org/mozilla-central/rev/45ff58448262
https://hg.mozilla.org/mozilla-central/rev/7caa8bd12f58
https://hg.mozilla.org/mozilla-central/rev/62a9486d0bf8
https://hg.mozilla.org/mozilla-central/rev/272c61005d40
https://hg.mozilla.org/mozilla-central/rev/4698834ec417
https://hg.mozilla.org/mozilla-central/rev/8bba486b8bd2
https://hg.mozilla.org/mozilla-central/rev/4c3eda721945
https://hg.mozilla.org/mozilla-central/rev/43483328a51b
https://hg.mozilla.org/mozilla-central/rev/53957c99ad81
https://hg.mozilla.org/mozilla-central/rev/def61a31e127
https://hg.mozilla.org/mozilla-central/rev/6d8d66fc9d22
https://hg.mozilla.org/mozilla-central/rev/e7dc27104247
https://hg.mozilla.org/mozilla-central/rev/08ea6c338c2c
Description
•