Linting rules
E008: used-ignored-identifier
Checks for usages of identifiers explicitly marked as unused with a leading underscore.
Metadata
Code:E008Rule:used-ignored-identifierStatus: Stable sincev0.0.1Quick fix: always available
What it does
Checks for usages of identifiers explicitly marked as unused with a leading underscore.
Why is this bad?
Prefixing with _ means the identifier is intentionally unused.
Using it later is misleading and makes code harder to read.
Example
fun main() {
val _value = 10;
_value;}Use instead:
fun main() {
val value = 10;
value;
}Last updated on
E007: no-bounce-handler
Reports `createMessage({ bounce: BounceMode.<...> })` calls reachable from `onInternalMessage` when the contract file does not declare `onBouncedMessage`.
E009: mutable-parameter-can-be-immutable
Checks for parameters that are declared as mutable (`mutate`) but are never mutated.