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•5 years ago
|
Assignee | ||
Comment 1•5 years ago
|
||
snorp linked to this plugin which seems promising: https://github.com/diffplug/spotless (with the google-java-format
)
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Assignee | ||
Updated•5 years ago
|
Assignee | ||
Comment 2•3 years ago
|
||
Updated•3 years ago
|
Assignee | ||
Comment 3•3 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•3 years ago
|
Comment 5•3 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/a0a60d0f61a5
https://hg.mozilla.org/mozilla-central/rev/1fa64c7fe170
Updated•1 year ago
|
Description
•