Luacheck specifications for Roblox Lua
Austin Reuschle c98bc0ac0f Delete build.yml | 5 년 전 | |
---|---|---|
img | 6 년 전 | |
src | 5 년 전 | |
.gitignore | 6 년 전 | |
LICENSE.md | 6 년 전 | |
README.md | 6 년 전 | |
luacheck-roblox.sublime-project | 6 년 전 | |
roblox_standard.lua | 5 년 전 |
Generates the roblox_standard.lua
file necessary to provide support for Roblox Lua in Luacheck.
If you're using Roblox outside of Roblox Studio, Luacheck is a linter that will analyze your code for you.
Here are some examples of the .luacheck in action. Traditional .luacheckrc files will not catch these errors.
script
and workspace
propertiesEnum
namespaceWorkspace
and other global variables following Roblox's standardsTo run you need Lua (5.1 or higher). Running the script will pull the latest version of the Roblox API and then pull in the latest Enums and game/workspace properties.
You can copy the contents of roblox_standard.lua
into your .luacheckrc
Inspired by luacheck-love.