Skip to main content
.glua-baseline.json is validated against glua.bluejutzu.dev/schemas/baseline.schema.json. Unlike .glua.json and .gluafmtrc.json, you do not write this file by hand — glua lint --suppress-all and --prune-suppressions write it for you. See Adopting on a codebase you inherited for the workflow this file supports.
The schema sets additionalProperties: false at the top level, and requires files.

Properties

Shape of files

Keyed by file path, then by the diagnostic code (the kebab-case name shown in the Problems panel and listed on the rules reference — not the camelCase settings key used in .glua.json), then a count of at least 1.
Findings are counted per file and rule rather than by line number, so moving code around does not invalidate the baseline — a file baselined at two unused-local findings still accepts exactly two no matter where in the file they move. A third one is reported as new.
This file is generated. Hand-editing a count down is indistinguishable from the code actually improving, which is exactly what --prune-suppressions exists to do safely — see the pruning note.