warning | layout | title |
---|---|---|
This is a dynamically generated file. Do not edit manually. |
default |
gas-strict-inequalities | Solhint |
Suggest Strict Inequalities over non Strict ones
This rule accepts a string option of rule severity. Must be one of "error", "warn", "off". Defaults to warn.
{
"rules": {
"gas-strict-inequalities": "warn"
}
}
- Strict inequality does not always saves gas. It is dependent on the context of the surrounding opcodes
- source 1 of the rule initiative (see Less/Greater Than vs Less/Greater Than or Equal To)
- source 2 of the rule initiative
This rule does not have examples.
This rule was introduced in Solhint 4.5.0