Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide built-in JSON reporter #3550

Open
ybiquitous opened this issue Jun 8, 2021 · 1 comment
Open

Provide built-in JSON reporter #3550

ybiquitous opened this issue Jun 8, 2021 · 1 comment
Labels

Comments

@ybiquitous
Copy link

Hi there,

I‘m wondering why JSHint has not provided a built-in JSON reporter. Currently, 3 reporters are provided:

  • jslint - XML
  • checkstyle - XML
  • unix - line oriented

"reporter": ["reporter", "Custom reporter (<PATH>|jslint|checkstyle|unix)", "string", undefined ],

I can use a 3rd-party JSON reporter jshint-json, but I think it would be wonderful if we could use a JSON reporter more easily without any extra installation.

For example, I have just written a custom reporter to output a JSON report:

https://github.com/sider/runners/blob/83b73bf27552cffb63906feb757b2e23161c73a3/images/jshint/custom-json-reporter.js

What do you think about this suggestion? I would appreciate your feedback.
Thank you.

@jugglinmike
Copy link
Member

Hi there! JSHint's "custom reporter" feature is how we give consumers fine-grained control of JSHint's output without the formal approval of the maitenance team. It's also a benefit to the maitenance team because it helps us limit the amount of code that we're responsible for.

I'd be happy to offer another built-in reporter, but I would like some indication that folks would use it. Honestly, at this stage in JSHint's lifetime, it seems unlikely that there's enough demand to warrant even a small feature like this, but I'm happy to be proven wrong! So if anyone would be interested, leave a positive "reaction" on @ybiquitous's original feature request above.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants