urscal-error
A Urscal module that does not load.
- Group
- Code
- Runs
- On by default
- Level
- warning
- Reads
- Every file
- Fix
- None: what the module should say is the author's to decide
Why
The module does not parse, or its rule part does not load: it imports a module that is not there, extends itself through others, declares another module than its path names, or states a fact its data type does not allow. Ur cannot use the module until it loads.
The fix, as Ur suggests it: correct the module so that it loads.
For agents
Write each .rsc module so that it parses and every module it imports is there.
Example
style/Style.rscmodule style::Style
import style::Helpers;
bool styled(Tree n) = helped(n);
$ ur lint --rule urscal-error
warning[urscal-error]: no module `style::Helpers` is at ./style/Helpers.rsc, nor among the modules checked
--> ./style/Style.rsc:1:1 the module does not load
= hint: correct the module so that it loads
0 clone classes and 1 `urscal-error` finding in 1 file