warning | layout | title |
---|---|---|
This is a dynamically generated file. Do not edit manually. |
default |
gas-increment-by-one | Solhint |
Suggest increments by one, like this ++i instead of other type
This rule accepts a string option of rule severity. Must be one of "error", "warn", "off". Defaults to warn.
{
"rules": {
"gas-increment-by-one": "warn"
}
}
- This rule only works for expressions like this: [ j = j + 1 ] but will fail if the code is written like this: [ j = 1 + j ]
- source 1 of the rule initiative (Incrementing/Decrementing By 1)
- source 2 of the rule initiative
This rule does not have examples.
This rule was introduced in Solhint 4.5.0