Skip to main content
Sometimes a diagnostic fires on a line that is actually correct. Instead of weakening the rule globally, you can suppress that single finding with an inline comment. The rest of your codebase keeps the protection, and readers can see exactly why the exception exists.

Suppression comment syntax

GLua Language Server recognizes several suppression styles in Lua comments.

When to use suppressions

If an entire path (like lua/vendor/**) triggers the same diagnostic, prefer a config file override in .glua.json instead of scattering suppression comments.
Suppress the specific rule name when possible. Avoid -- glua-ignore without a rule name because it silences every diagnostic on that line and can hide real problems.