Open
Description
I have a .luacheckrc that looks something like:
std = 'lua51'
stds.custom = {
not_globals = {
'package',
'golua_default_msghandler',
'os',
'require',
'io',
'module',
'unsafe_xpcall',
'unsafe_pcall',
'debug',
'dofile',
},
read_globals = {
-- custom read globals
},
}
files['**/*.custom'] = {
std = '+custom'
}
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 by std
from a custom standard defined in stds
?
❯ luacheck --version
Luacheck: 0.26.1
Lua: PUC-Rio Lua 5.1
Argparse: 0.7.1
LuaFileSystem: 1.8.0
LuaLanes: Not found
Metadata
Assignees
Labels
No labels
Activity