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