Skip to content

Support autofixing by check-json #1161

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
mecampbellsoup opened this issue Apr 30, 2025 · 1 comment
Closed

Support autofixing by check-json #1161

mecampbellsoup opened this issue Apr 30, 2025 · 1 comment

Comments

@mecampbellsoup
Copy link

Similarly to pretty-format-json, it would be nice if check-json could be given an argument like --autofix so that things like trailing commas could be automatically fixed by the hook.

@asottile
Copy link
Member

it's not possible to autofix invalid syntax in the general case and accurately

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

No branches or pull requests

2 participants