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.5.8

Example Config

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

Examples

This rule does not have examples.

Version

This rule was introduced in Solhint 2.1.0

Resources