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

Enabling warnings for globals that we write #1062

Merged
merged 1 commit into from
Apr 26, 2024

Conversation

emmericp
Copy link
Member

By default LuaLS allows us to implictly declare a global by writing to it, whereas LuaCheck didn't allow this. Since we don't want to write to many globals it's better to require them to be explicitly declared in .luarc.json.

Unlike LuaCheck this unfortunately doesn't support regular expressions to define the set of allowed globals, this will be fixed in LuaLS/lua-language-server#2629 soon hopefully.

By default LuaLS allows us to implictly declare a global by writing to
it, whereas LuaCheck didn't allow this. Since we don't want to write to
many globals it's better to require them to be explicitly declared in
.luarc.json.

Unlike LuaCheck this unfortunately doesn't support regular expressions
to define the set of allowed globals, this will be fixed in
LuaLS/lua-language-server#2629 soon hopefully.
@emmericp emmericp merged commit 95faf2b into DeadlyBossMods:master Apr 26, 2024
3 checks passed
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

Successfully merging this pull request may close these issues.

2 participants