unused_suppression
Finds a name in a // jailint: allow(...) comment or @jailint_allow note that silences nothing.
Category suspicious, warn by default.
#import "Basic";
scale :: (a: int) -> int {
// jailint: allow(unused_variable)
total := a * 2;
return total;
}
main :: () {
print("%\n", scale(4));
}warning[unused_suppression]: `unused_variable` allows nothing here
--> example.jai:4:23
|
4 | // jailint: allow(unused_variable)
| ^^^^^^^^^^^^^^^
|
= help: nothing it covers is reported any more; remove it
= note: `unused_suppression` is `warn` by default#import "Basic";
scale :: (a: int) -> int {
total := a * 2;
return total;
}
main :: () {
print("%\n", scale(4));
}A name in a // jailint: allow(...), allow-file(...) or @jailint_allow(...) that no finding was silenced by, reported on the name (or on the whole note).