Skip to content

JSON Formatter #602

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

Closed
gdiggs opened this issue Jun 30, 2015 · 8 comments
Closed

JSON Formatter #602

gdiggs opened this issue Jun 30, 2015 · 8 comments

Comments

@gdiggs
Copy link

gdiggs commented Jun 30, 2015

Opening this issue just to see if there is interest in this. I am happy to build it if there is:

It would be great to have a JSON formatter that outputs the result of the linting in one JSON document, rather than the XML or text formatters that are present.

@jawshooah
Copy link
Contributor

Absolutely! Though with the current pace of development and releases, I doubt such a feature would make it into production anytime soon 😢

@steelbrain
Copy link

Bump! It's 2015, XML is long gone, Just support JSON already! 🌹

@Arcanemagus
Copy link
Contributor

An implementation of this is up in #606, now we just need to wait for it to get merged 😉.

@sils
Copy link

sils commented Feb 10, 2016

Hi, we have a tool named coala that unifies a lot of other tools, including CSSLint and provides you with various output formats including JSON. It's free software, more info on http://coala-analyzer.org/ .

With that you can get CSSLint JSON output right now, assuming you have csslint installed on your machine:

pip3 install coala
coala-json --files=\*\*/\*.css --bears=CSSLintBear --save

The save flag will generate a coala configuration file so next time you just type coala or coala-json or whatever you want/need.

(Note: the intention behind this tool is to make the lifes of the people writing static code analysis easier so we do user interaction for them. Goal is to reduce redundancy not create some so we're currently wrapping lots of other tools so you can seamlessly use everything via coala.)

@Arcanemagus
Copy link
Contributor

@sils1297 #606 was written specifically so we don't need to rely on aggregator tools like that (and even more specifically so we don't have to bother with pulling in a library to parse XML...).

Our use case is the linter-csslint plugin for the Atom text editor, which is quite specifically for csslint.

That being said, that's an interesting tool and it would be nice to see it as a service provider for the linter pacakge 😉. If you were interested in putting that together and had any questions feel free to hop into the #linter-plugin-dev channel on Atom's Slack instance.

@sils
Copy link

sils commented Feb 10, 2016

@Arcanemagus you speak of an atom linter based on the atom linter thing? Like https://github.com/coala-analyzer/coala-atom ?

@Arcanemagus
Copy link
Contributor

Ha! Exactly 😉

@frvge
Copy link
Contributor

frvge commented Apr 4, 2016

#606 has been merged. Closing this issue.

@frvge frvge closed this as completed Apr 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants