Linting rules
E010: acton-import-in-contract
Forbids importing files from `.acton` in contract dependency trees.
Metadata
Code:E010Rule:acton-import-in-contractStatus: Stable sincev0.0.1Quick fix: not available
What it does
Forbids importing files from .acton in contract dependency trees.
Why is this bad?
Contract sources should not depend on Acton internals from .acton.
Such imports are environment-dependent and make contracts less portable.
Behavior notes
This rule's default diagnostic severity is error, unlike most linter rules.
[lint.rules] can still lower or allow it. When acton check is run on a
single .tolk file, command settings currently allow this rule for
test-file workflows.
Example
import "@acton/tlb/maybe";Use instead:
import "@stdlib/gas-payments";Last updated on