LYR-SEM0179
a lint attribute names no lint
The argument of @Allow, @Warn or @Deny is no lint's name or code, no group, and not warnings.
Explanation
@Allow, @Warn and @Deny set a lint's level in what they sit on, and name the lint by its name (unused-variable), by its code (LYR-SEM0071), by its group (unused), or all of them (warnings). A name that names nothing would set nothing, silently.
Write a lint's name — lyric explain LYR-SEM0071 names a warning's lint — or a group.
Wrong
@Allow("unused-varable")
fn f(): void {
let x = 1;
}
fn main(): void {
f();
}
Right
@Allow("unused-variable")
fn f(): void {
let x = 1;
}
fn main(): void {
f();
}