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)

defect
Not set
normal

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
Mentor: ahalberstadt
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.
Thanks for the heads up Deepa, no problem at all!
Hi Deepa, was this something you were still interested in?
Flags: needinfo?(deepsrijit1105)
Assignee: deepsrijit1105 → nobody
Status: ASSIGNED → NEW
Flags: needinfo?(deepsrijit1105)
Assignee: nobody → ahalberstadt
Mentor: ahalberstadt
Status: NEW → ASSIGNED
Blocks: 1387555
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
https://hg.mozilla.org/mozilla-central/rev/adf616622c4a
Status: ASSIGNED → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla57
Product: Testing → Firefox Build System
Product: Firefox Build System → Developer Infrastructure
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: