.glua.json is validated against
glua.bluejutzu.dev/schemas/glua.schema.json,
the same schema glua init and GLua: Create Linter Config File point
$schema at. This page documents every property it accepts. For a shorter,
example-first walkthrough see Config Files.
The schema sets
additionalProperties: false at every level shown below, so
a typo’d key is flagged in your editor rather than silently ignored.Top level
URL of the JSON schema for this file. Written automatically by
glua init and the VS Code commands.Globals provided by addons outside this workspace, e.g.
["ULib", "ulx", "pac"]. Declaring them stops undefined-global firing on every use.Per-rule severities — see below. Rules can also be suppressed inline with
-- glua-ignore <rule>.A subset of
.gluafmtrc.json’s options — see below. A .gluafmtrc.json file, if present, wins over this.Indexing limits and dependency source trees — see below.
Completion behaviour — see below.
Inline hints shown alongside your code — see below.
Hover documentation behaviour — see below.
Per-path rule overrides, applied in order; later entries win — see below.
format
Only these keys have any effect here: maxLineWidth, quoteStyle,
operatorStyle, commentStyle, spaceInsideParens, keepSingleLineBlocks,
maxBlankLines, semicolons. The schema does not reject the rest of
.gluafmtrc.json’s keys here, but
useTabs, indentSize and endOfLine are silently ignored when written
inside .glua.json — indentation and line endings come from your editor (or
.editorconfig) instead. Put those two in an actual .gluafmtrc.json file if
you need to pin them for the whole team.
diagnostics
Every property accepts a severity — "error", "warning", "information",
"hint" or "off" — except enable and scope, which are about how the
server runs rather than any one rule. See the
rule reference for what each rule actually catches; the
settings key here is the same one shown under each rule there.
missing-asset. Needs workspace.gamePath — a VS Code setting, not a .glua.json property.Whether to report problems only in open files, or in every indexed file.
workspace
Maximum Lua files to index. The CLI’s own
--max-files flag, when given, wins over this.Source trees for frameworks this project uses but does not contain (ULib, DarkRP, Wiremod). Indexed for what they define and never reported on. Absolute, or relative to this file. See Frameworks and Libraries.
workspace.gamePath completes and checks asset paths against a full Garry’s Mod install. It is not part of this schema — set it as the VS Code setting glua.workspace.gamePath instead, described on the Asset Paths page.completion
Hide API members that cannot exist in the current file’s realm.
inlayHints
Show the inferred realm at the top of each file.
hover
overrides
An array of objects, applied in order — later entries win when two overrides
match the same file.
Glob patterns relative to this file’s directory, e.g.
lua/vendor/**. At least one entry.Severities to apply to matching files, same shape as the top-level
diagnostics object — see above.