-
Notifications
You must be signed in to change notification settings - Fork 55
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
not_globals
for custom standard doesn't seem to work
#72
Comments
(Sorry for the slow response!) (1) It should be stds.custom, not std.custom
|
Oops! That was a typo when I created the issue. I have stds locally. I'll edit the comment to reflect that.
Oh, I thought using the + added onto the std, which is
I'm trying to remove require from the custom set, since it is not available for that type of file. |
I'm so very sorry, I've badly misunderstood what you were looking for; ignore my previous message, it was assuming that you wanted to be able to set require without a warning. stds only supports globals and read_globals, not not_globals. So you original request isn't supported in the current code. In the current code, not_globals should go outside the custom std, i.e. something like this:
I can explore changing std's to also support not_globals. |
Oh, I see! I must have missed this:
I do think that setting |
I have a .luacheckrc that looks something like:
but when I try to set
require
in a file matching the glob and run luacheck I get:(W121) setting read-only global variable require
How can I remove
read_globals
set bystd
from a custom standard defined instds
?The text was updated successfully, but these errors were encountered: