luacheck

Linter and static analyzer for Lua code

brewmacoslinux
Try with needOr install directly
Source

About

Tool for linting and static analysis of Lua code

Commands

luacheck

Examples

Check a single Lua file for issues$ luacheck script.lua
Check all Lua files in a directory recursively$ luacheck src/
Check with configuration file and report summary$ luacheck . --config .luacheckrc