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

[Feature Request] Annotations #38

Open
Stanzilla opened this issue Sep 14, 2022 · 1 comment
Open

[Feature Request] Annotations #38

Stanzilla opened this issue Sep 14, 2022 · 1 comment

Comments

@Stanzilla
Copy link

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.

@JohnnyMorganz
Copy link
Owner

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

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

2 participants