Closed Bug 2050591 Opened 3 months ago Closed 1 month ago

Replace ktlint with ktfmt for android linting and autoformat mobile/android/** files

Categories

(Firefox for Android :: Tooling, enhancement)

All
Android
enhancement

Tracking

()

RESOLVED FIXED
156 Branch
Tracking Status
firefox156 --- fixed

People

(Reporter: adhingra, Assigned: adhingra)

References

(Blocks 2 open bugs)

Details

(Whiteboard: [fxdroid][group6])

Attachments

(12 files, 4 obsolete files)

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

To see if we want to use https://github.com/facebook/ktfmt instead of or in addition to ktlint.

Assignee: nobody → adhingra
Status: NEW → ASSIGNED
Attached file WIP: Bug 2050591 - Run ktfmt on fenix (obsolete) —
Attached file WIP: Bug 2050591 - Run ktfmt on focus (obsolete) —
Whiteboard: [fxdroid][group6]
Attachment #9601570 - Attachment is obsolete: true
Attachment #9601569 - Attachment is obsolete: true
Attachment #9601566 - Attachment is obsolete: true
Attachment #9601562 - Attachment is obsolete: true
Attachment #9601559 - Attachment description: WIP: Bug 2050591 - Setup ktfmt for android linting → Bug 2050591 - Setup ktfmt for android linting
Attachment #9616822 - Attachment description: WIP: Bug 2050591 - Update detekt baseline configs → Bug 2050591 - Update detekt baseline configs to fix errors after ktfmt formatting
Attachment #9616823 - Attachment description: WIP: Bug 2050591 - Remove ktlint and replace with ktfmt where possible → Bug 2050591 - Remove ktlint and replace with ktfmt where possible
Attachment #9616821 - Attachment description: WIP: Bug 2050591 - Add ktfmt to linters → Bug 2050591 - Add ktfmt to linters
Attachment #9620497 - Attachment description: Bug 2050591 - Format fenix source files with ktfmt → Bug 2050591 - Format apilint plugin files with ktfmt.
Attachment #9620497 - Attachment description: Bug 2050591 - Format apilint plugin files with ktfmt. → Bug 2050591 - Format fenix source files with ktfmt
Attachment #9620496 - Attachment description: Bug 2050591 - Format geckoview files with ktfmt → Bug 2050591 - Format geckoview files with ktfmt.
Attachment #9620497 - Attachment description: Bug 2050591 - Format fenix source files with ktfmt → Bug 2050591 - Format fenix source files with ktfmt.
Attachment #9620499 - Attachment description: Bug 2050591 - Format fenix ui test files with ktfmt → Bug 2050591 - Format fenix ui test files with ktfmt.
Attachment #9620501 - Attachment description: Bug 2050591 - Format focus files with ktfmt → Bug 2050591 - Format focus files with ktfmt.
Attachment #9616822 - Attachment description: Bug 2050591 - Update detekt baseline configs to fix errors after ktfmt formatting → Bug 2050591 - Update detekt baseline configs to fix errors after ktfmt formatting.
Attachment #9620507 - Attachment description: Bug 2050591 - Format android-components files with ktfmt → Bug 2050591 - Format android-components files with ktfmt.
Pushed by adhingra@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/9a71fe1f0d46 https://hg.mozilla.org/integration/autoland/rev/7933bea7ced6 Setup ktfmt for android linting r=ahochheiden,sfamisa,geckoview-reviewers,android-reviewers,jonalmeida https://github.com/mozilla-firefox/firefox/commit/6619d8a7fe84 https://hg.mozilla.org/integration/autoland/rev/a73ae1352d14 Add ktfmt to linters r=ahochheiden,android-reviewers,jonalmeida https://github.com/mozilla-firefox/firefox/commit/20167d0508ce https://hg.mozilla.org/integration/autoland/rev/a088a97a74e4 Remove ktlint and replace with ktfmt where possible r=geckoview-reviewers,android-reviewers,owlish,taskgraph-reviewers,ahal,ahochheiden,jonalmeida https://github.com/mozilla-firefox/firefox/commit/fafdd808a2f3 https://hg.mozilla.org/integration/autoland/rev/1c5eb1d67326 Format geckoview files with ktfmt. r=geckoview-reviewers,jonalmeida https://github.com/mozilla-firefox/firefox/commit/d0469c5e7f19 https://hg.mozilla.org/integration/autoland/rev/d7b71e8b1ec6 Format fenix source files with ktfmt. r=android-reviewers,jonalmeida https://github.com/mozilla-firefox/firefox/commit/d48158104cb4 https://hg.mozilla.org/integration/autoland/rev/31ac63afe670 Format fenix test files with ktfmt r=android-reviewers,jonalmeida https://github.com/mozilla-firefox/firefox/commit/8e38afc76776 https://hg.mozilla.org/integration/autoland/rev/987e275f8134 Format fenix ui test files with ktfmt. r=android-reviewers,jonalmeida https://github.com/mozilla-firefox/firefox/commit/747bf11e140d https://hg.mozilla.org/integration/autoland/rev/57663ff81e4a Format focus files with ktfmt. r=android-reviewers,jonalmeida https://github.com/mozilla-firefox/firefox/commit/1967f78d98ef https://hg.mozilla.org/integration/autoland/rev/c63a2448da19 Format android-components files with ktfmt. r=android-reviewers,webcompat-reviewers,twisniewski,jonalmeida https://github.com/mozilla-firefox/firefox/commit/8825237d2598 https://hg.mozilla.org/integration/autoland/rev/8d2b55769a1e Update detekt baseline configs to fix errors after ktfmt formatting. r=android-reviewers,gl https://github.com/mozilla-firefox/firefox/commit/b4f712874bb3 https://hg.mozilla.org/integration/autoland/rev/1d723ff15ec0 Format apilint plugin files with ktfmt. r=geckoview-reviewers,jonalmeida
Keywords: leave-open
Summary: Investigate using ktfmt for android linting → Replace ktlint with ktfmt for android linting and autoformat mobile/android/** files
Keywords: leave-open
Pushed by rvandermeulen@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/1d36bdead529 https://hg.mozilla.org/integration/autoland/rev/db7a532cea2e Add ktfmt formatting commits to .hg-annotate-ignore-revs and .git-blame-ignore-revs. r=RyanVM
Blocks: 2064079
See Also: → 2064079
Blocks: 2065300
See Also: 2064079 →
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: