Skip to content

Latest commit

 

History

History
39 lines (30 loc) · 1.38 KB

one-contract-per-file.md

File metadata and controls

39 lines (30 loc) · 1.38 KB
warning layout title
This is a dynamically generated file. Do not edit manually.
default
one-contract-per-file | Solhint

one-contract-per-file

Recommended Badge Category Badge Default Severity Badge warn

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

Description

Enforces the use of ONE Contract per file see here

Options

This rule accepts a string option of rule severity. Must be one of "error", "warn", "off". Defaults to warn.

Example Config

{
  "rules": {
    "one-contract-per-file": "warn"
  }
}

Examples

This rule does not have examples.

Version

This rule was introduced in Solhint 5.0.4

Resources