solhint

gas-increment-by-one

Category Badge Default Severity Badge warn

Description

Suggest incrementation by one like this ++i instead of other type

Options

This rule accepts a string option of rule severity. Must be one of “error”, “warn”, “off”. Default to warn.

Example Config

{
  "rules": {
    "gas-increment-by-one": "warn"
  }
}

Notes

Examples

This rule does not have examples.

Version

This rule was introduced in Solhint 4.5.0

Resources