runem / lit-analyzer

Monorepository for tools that analyze lit-html templates
MIT License
318 stars 36 forks source link

[suggestion] Add cli output json-formatter #254

Open lucaelin opened 2 years ago

lucaelin commented 2 years ago

In order to improve integration into existing code-quality tools and tracker and ci-products like gitlab or sonar, a preferably eslint-compatible json output for the cli tool would be great.

justinfagnani commented 2 years ago

I think that the linting functionality of this tool should ultimately be moved to an eslint plugin, which would naturally make this integration possible. @rictic

lucaelin commented 2 years ago

I agree, but I also think that a machine-readable output format could still be useful and allow for more 3rd-party tooling to easily integrate with lit-analyzer, without depending on eslint.

lucaelin commented 2 years ago

I took the liberty to implement such a formatter, compatible with the codeclimate output. I don't mind this not being merged, because I didn't wait for any "go ahead", but it gave me a change to dig into the codebase and learn something new nonetheless :)