Luacheck specifications for Roblox Lua
Austin Reuschle c98bc0ac0f Delete build.yml | 5 years ago | |
---|---|---|
img | 6 years ago | |
src | 5 years ago | |
.gitignore | 6 years ago | |
LICENSE.md | 6 years ago | |
README.md | 6 years ago | |
luacheck-roblox.sublime-project | 6 years ago | |
roblox_standard.lua | 5 years ago |
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.