unknown_allow
Finds a // jailint: allow(...) comment naming a rule that does not exist.
Category suspicious, warn by default.
#import "Basic";
// jailint: allow(float_equlity)
is_zero :: (x: float) -> bool {
return x == 0.0;
}
main :: () {
print("%\n", is_zero(0.0));
}warning[unknown_allow]: `float_equlity` is not a jailint rule, so this comment allows nothing
--> example.jai:3:19
|
3 | // jailint: allow(float_equlity)
| ^^^^^^^^^^^^^
|
help: did you mean `float_equality`? (`--list` shows every rule)
|
3 ~ // jailint: allow(float_equality)
|
= note: `unknown_allow` is `warn` by default#import "Basic";
// jailint: allow(float_equality)
is_zero :: (x: float) -> bool {
return x == 0.0;
}
main :: () {
print("%\n", is_zero(0.0));
}A name in a line comment's allow(...) or allow-file(...) list that is not a rule, a category or all.