-
Notifications
You must be signed in to change notification settings - Fork 127
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
Is there a formatter/linter for Ron? #377
Comments
I haven't seen any. It would be great to have! |
Yeah, and there could also be a `ron::to_string_pretty()`!Do you know how one would go about this? Would it just take a lot of regex and elbow grease?On 18 Apr 2022 2:03 pm, Dzmitry Malyshau ***@***.***> wrote:
I haven't seen any. It would be great to have!
—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you authored the thread.Message ID: ***@***.***>
|
There is |
Hello. There exists a formatter I have been using privately, it's based on an alternative RON implementation. I have now uploaded it here, including static binary files from the two platforms I use. Here is the link: https://gist.github.com/d86leader/c6d10e0fd329c75925cd42c8fc9ab7d5 P.S. |
Can |
It definitely could, though I'm personally a bit sceptical of having too many items in the root module. If this is mainly about discovery, we could perhaps link to |
If that's a concern, then a documentation link may be the best solution. I'm not sure how you'll address it, but here's my thoughts on the matter: |
Any updates on that? I just started working on my own ron formatter (but in rust) but would be interested in any other implementations. |
#440 finally adds some docs improvements and I've made the |
This seems like an only option to format ron files atm: https://github.com/barafael/ronfmt |
There is also While it doesn't support any configuration, it preserves comments and can format either a list of files While I pushed some changes I made a while ago right now, I'm probably not really continuing this project for now, as I'm considering replacing my |
I was able to install ronfmt via "emeraldwalk.runonsave": {
"commands": [
{
"match": "\\.ron$",
"ronfmt ${file}"
}
]
} Idk, just wanted to share this in case people find it useful. |
Is there a formatter or linter for ron available for vscode? The vscode-ron extension seems to do syntax highlighting but not formatting.
The text was updated successfully, but these errors were encountered: