solhint

compiler-version

Recommended Badge Category Badge Default Severity Badge error

The {“extends”: “solhint:recommended”} property in a configuration file enables this rule.

Description

Compiler version must satisfy a semver requirement.

Options

This rule accepts an array of options:

Index Description Default Value
0 Rule severity. Must be one of “error”, “warn”, “off”. error
1 Semver requirement ^0.8.0

Example Config

{
  "rules": {
    "compiler-version": ["error","^0.8.0"]
  }
}

Examples

This rule does not have examples.

Version

This rule was introduced in Solhint 2.1.0

Resources