Lints#
parcel_core::lint points at contracts that compile but probably do not do what their author meant. A lint never refuses a contract.
lint#
pub fn lint(doc: &ContractDoc, checked: &CheckedContract) -> Vec<Lint>;
doc is the document as written, before inheritance; checked is the result of check_contract (or check::check_layers for an inheriting contract).
Lint#
Field |
Type |
Meaning |
|---|---|---|
|
|
Stable name, such as |
|
|
|
|
|
Affected rule ID, when there is one. |
|
|
What looks wrong. |
|
|
What to write instead. |
|
|
The 1-based line of the document, when known. |
Lints#
Name |
Severity |
When |
|---|---|---|
|
Warning |
An |
|
Warning |
A condition reads no namespace, so it always gives the same answer. |
|
Warning |
Two rules of one operation check the same condition. |
|
Warning |
Two caller conditions require different values of one |
|
Warning |
A declared |
|
Note |
No |
|
Note |
The contract names no |
|
Note |
The name has no |
The command line adds binding-not-found, a note, when a local Parquet binding does not exist.