Closed
Bug 1306122
Opened 8 years ago
Closed 7 years ago
[mozlint] Create a "compact" formatter similar to the one in eslint
Categories
(Developer Infrastructure :: Lint and Formatting, defect)
Developer Infrastructure
Lint and Formatting
Tracking
(firefox57 fixed)
RESOLVED
FIXED
mozilla57
Tracking | Status | |
---|---|---|
firefox57 | --- | fixed |
People
(Reporter: ahal, Assigned: ahal)
References
Details
Attachments
(1 file)
This doesn't need to be identical to the eslint one (I think even eslint's is too verbose), but that can be used as a guideline. Example format can be found here: http://eslint.org/docs/user-guide/formatters/#compact Maybe something like: <path> <line>:<col> <message> - <rule> (<linter>) The goal would be each rule takes up a single line, and use as little space as possible. It would also be nice to colorize as long as a terminal is detected, a similar approach as the 'stylish' formatter could be used. It might be worthwhile even sharing some of the colorization code between the two. Code for mozlint formatters lives here: https://dxr.mozilla.org/mozilla-central/source/python/mozlint/mozlint/formatters
Assignee | ||
Updated•7 years ago
|
Mentor: ahalberstadt
Assignee | ||
Comment 1•7 years ago
|
||
Thanks for volunteering to look at this Deepa! Please don't hesitate to ask questions if you need some guidance.
Assignee: nobody → deepsrijit1105
Status: NEW → ASSIGNED
Hi Andrew, I would not get much time to work on this till Sunday. I will submit a patch on Monday. Please don't remove me from assignee :-) Thanks.
Assignee | ||
Comment 3•7 years ago
|
||
Thanks for the heads up Deepa, no problem at all!
Assignee | ||
Comment 4•7 years ago
|
||
Hi Deepa, was this something you were still interested in?
Flags: needinfo?(deepsrijit1105)
Assignee | ||
Updated•7 years ago
|
Assignee: deepsrijit1105 → nobody
Status: ASSIGNED → NEW
Flags: needinfo?(deepsrijit1105)
Assignee | ||
Updated•7 years ago
|
Assignee: nobody → ahalberstadt
Mentor: ahalberstadt
Status: NEW → ASSIGNED
Comment hidden (mozreview-request) |
Comment 6•7 years ago
|
||
mozreview-review |
Comment on attachment 8893926 [details] Bug 1306122 - [mozlint] Create a compact formatter that mimics the eslint 'compact' format, https://reviewboard.mozilla.org/r/164990/#review171198 lgtm
Attachment #8893926 -
Flags: review?(armenzg) → review+
Pushed by ahalberstadt@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/adf616622c4a [mozlint] Create a compact formatter that mimics the eslint 'compact' format, r=armenzg
Comment 8•7 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/adf616622c4a
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
status-firefox57:
--- → fixed
Resolution: --- → FIXED
Target Milestone: --- → mozilla57
Updated•6 years ago
|
Product: Testing → Firefox Build System
Updated•2 years ago
|
Product: Firefox Build System → Developer Infrastructure
You need to log in
before you can comment on or make changes to this bug.
Description
•