Identify and apply formatter to java code
Categories
(GeckoView :: General, task, P3)
Tracking
(firefox95 fixed)
Tracking | Status | |
---|---|---|
firefox95 | --- | fixed |
People
(Reporter: agi, Assigned: agi)
References
(Blocks 1 open bug)
Details
Attachments
(2 files)
Similarly to what happend to our javascript and c++ we should identify a formatter and apply it to the entire java codebase. And make sure it runs on every check in.
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 1•4 years ago
|
||
snorp linked to this plugin which seems promising: https://github.com/diffplug/spotless (with the google-java-format
)
Updated•4 years ago
|
Updated•4 years ago
|
Updated•4 years ago
|
Assignee | ||
Updated•4 years ago
|
Assignee | ||
Comment 2•2 years ago
|
||
Updated•2 years ago
|
Assignee | ||
Comment 3•2 years ago
|
||
This change adds a new lint android-format
which enforces formatting of Java
code using google-java-format.
To run the lint simply run:
./mach lint -l android-format
This command also support automatically fixing all errors running by adding
--fix:
./mach lint -l android-format --fix
This change also removes all the formatting-related checkstyle checks which are
now implicitly enforced by the formatter.
Updated•2 years ago
|
Pushed by asferro@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/a0a60d0f61a5 Use google-java-format via spotless to enforce Java formatting. r=ahal,owlish https://hg.mozilla.org/integration/autoland/rev/1fa64c7fe170 Format Java codebase with google-java-formatter. r=owlish
Comment 5•2 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/a0a60d0f61a5
https://hg.mozilla.org/mozilla-central/rev/1fa64c7fe170
Description
•