Skip to main content
These settings live under diagnostics in .gluarc.json. For quick fixes from the editor, see Fix common warnings.

Options

.gluarc.json

Codes

The code name appears at the end of each warning in the editor. Codes marked Off only run when you add them to diagnostics.enables.

Garry’s Mod

Globals and variables

Fields and methods

Types and nil

need-check-nil and unchecked-nil-access understand IsValid and similar checks. See @valid_guard for your own check functions.

Returns

Code quality

Annotations

Stricter type checks are in Runtime and strict mode.