stylua-action icon indicating copy to clipboard operation
stylua-action copied to clipboard

[Feature Request] Annotations

Open Stanzilla opened this issue 3 years ago • 1 comments

So now that we have the summary output style (thanks again!), it would be nice if the action used annotations to point out mistakes in the code.

Stanzilla avatar Sep 14 '22 15:09 Stanzilla

Sorry, I missed this issue. Annotations in combination with summary output will be somewhat challenging. The only way (I think) we can do annotations is to parse the output of stylua, and if the output doesn't give any info about specific problems which we can parse, then we can't do annotations.

That being said, stylua supports --output-style=json, which is nicely machine readable. This can be parsed to support annotations, then a custom summary produced afterwards

JohnnyMorganz avatar Oct 15 '22 17:10 JohnnyMorganz