Hi all! I’ve got a new Roblox Luacheck open source project that has all of the Enums and API for game
and script
. This is an improvement over existing luacheck files which don’t provide additional checking. There’s a generation file that can be used to pull the most recent version of the API and update it.
What is Luacheck
If you’re using Roblox outside of Roblox Studio, Luacheck is a linter that will analyze your code for you.
Examples
Here are some examples of the .luacheck in action. Traditional .luacheckrc files will not catch these errors.
Usage
You can copy the contents of roblox_standard.lua
into your .luacheckrc
Features
- Automatically applies
script
andworkspace
properties - Automatically applies the
Enum
namespace - Has definitions for Roblox types and variables
- Specifically ignores adding
Workspace
and other global variables following Roblox’s standards - Does not show deprecated properties
File
https://github.com/Quenty/luacheck-roblox/blob/master/roblox_standard.lua
I’m hoping this is useful for anyone writing Roblox lua outside of Studio.