All apps/Luacheck

Luacheck

luacheck

A tool for linting and static analysis of Lua code.

Runs as luacheck|macOS, Linux, Windows|github.com

Command form

ai-draft · 2 tasks · 14 fields

Check files or directories with luacheck. Covers the common filters and standards; formatter plugins, caching and parallel jobs are left out.

Opens the form; the finished command lands at your prompt, unrun
otty gui luacheck
Lint Lua filesExample values, fixed in this page — nothing here reaches a terminal
Basic
Files or directories*
any
Show warning codes
--codes
Quiet (hide clean files)
--quiet
TasksEach one presets the form for one job
Lint files
filescodesquiet
Lint against a standard
filesstdglobalscodes
ParametersOnly these flags are editable in the form
Files or directories
path · positional 0 · repeatable
Standard globals
enum
--stdmaxminlua51lua52lua53lua54luajitngx_lualovebustednone
Extra globals
string · repeatable
--globals
Read-only globals
string · repeatable
--read-globals
Hide unused-variable warnings
boolean
--no-unused-u
Hide unused-argument warnings
boolean
--no-unused-args-a
Hide global-variable warnings
boolean
--no-global-g
Max line length
integer
--max-line-length
Ignore warnings matching
Warning codes or variable names.
string · repeatable
--ignore-i
Exclude files (glob)
string · repeatable
--exclude-files
Config file
path
--config
Show warning codes
boolean
--codes
Quiet (hide clean files)
boolean
--quiet-q
No color
boolean
--no-color
SourcesEvery flag above is checked against these
docs
``-g | --no-global`` Filter out warnings related to global variables. ``-u | --no-unused`` Filter out warnings related to unused variables and values. ``-r | --no-redefined`` Filter out warnings related to redefined variables. ``-a | --no-unused-args`` Filter out warnings related to unused a…
manualmaster 2026-10-27

github.com

Before it fills your prompt, Otty checks the installed luacheck against its version. A form that does not match your version is not offered.