The compiler’s lint framework (§3.5.30 in the internal plan) assigns a severity level to named checks. This page documents every available lint and the flags that control them.
| Lint | Alias | Default level | Fires when |
|---|---|---|---|
unsafe_fn_call |
unsafe |
warn | A declared unsafe fn is called outside any enclosing unsafe { } block. |
unused_generic_params |
unused_generics |
warn | A monomorphized function does not use one or more of its generic parameters. Checked post-monomorphization by glyim-lower. |
The lint list is small by design and grows deliberately: adding a lint means adding a variant, a canonical name, the check that emits the diagnostic, and a drift-detection test so the lint cannot become invisible to -W help.
Levels
Section titled “Levels”| Level | Flag | Behavior |
|---|---|---|
| allow | -A, --allow |
Suppress the diagnostic entirely. |
| warn | -W, --warn |
Emit as a warning. This is the default. |
| deny | -D, --deny |
Emit as an error and abort compilation at the pipeline’s error gate. |
All three flags are repeatable, and later flags override earlier ones for the same lint.
# Promote the unsafe_fn_call lint to an errorglyim input.g -D unsafe
# Suppress itglyim input.g -A unsafe_fn_call
# Explicitly set warning levelglyim input.g -W unused_generic_params
# List every available lint name and aliasglyim -W helpglyim -W help answers before argument parsing enforces the required input file, so it works as a standalone command.
Next steps
Section titled “Next steps”See the CLI reference for the full flag table, and the language reference for unsafe fn semantics.
