Linting rules
E022: negated-is-type-can-use-not-is
Detects negated type checks written as `!(a is T)`.
Metadata
Code:E022Rule:negated-is-type-can-use-not-isStatus: Stable sincev0.0.1Quick fix: always available
What it does
Detects negated type checks written as !(a is T).
Why is this bad?
Tolk has a dedicated !is operator, which is clearer than negating is.
Example
if (!(value is int)) { return;
}Use instead:
if (value !is int) {
return;
}Last updated on
E021: dangerous-send-mode-missing-safety-comment
Requires a `SAFETY` comment for `msg.send(...)` calls that use dangerous send-mode flags.
E023: bless-call-missing-safety-comment
Requires a `SAFETY` comment for calls to `transformSliceToContinuation` and for calls to any `asm` function that uses `BLESS`.