-
-
Notifications
You must be signed in to change notification settings - Fork 995
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
Consider doing some syntactical validation of Lua/WFL code #8385
Comments
adding the "WML Tools" label because I think that'd be another place that it might be worth looking into doing this, besides the schema validator |
That's true – there's already a |
I don't see anything in luacheck to make it synthesize line numbers (like C++'s |
A new Python script, or could it just be done as part of |
Seems weird to insert |
I mean, it already runs an external spellchecking tool... also there seems to be some desire for something similar in #3817 |
That issue doesn't seem to be about Lua though; and an external spellchecking tool is a bit different from making it call |
This feels like it might be asking a bit too much, but… I wonder if it would be reasonable for the schema to run at least a syntax check on any code included in keys that expect Lua or WFL code? Linting it would be even better, though that really feels like it might not be worth it, but I think just a syntax check could be done by compiling it and checking if that returns an error…
There are also a few other DSLs we have in WML, maybe those could be checked too (some of them might be checked already). For example, the CFG syntax for name generators or the progressive string syntax for animations.
The text was updated successfully, but these errors were encountered: