Skip to content

Latest commit

 

History

History
42 lines (32 loc) · 1.39 KB

function-max-lines.md

File metadata and controls

42 lines (32 loc) · 1.39 KB
warning layout title
This is a dynamically generated file. Do not edit manually.
default
function-max-lines | Solhint

function-max-lines

Category Badge Default Severity Badge warn

Description

Function body contains "count" lines but allowed no more than maxlines.

Options

This rule accepts an array of options:

Index Description Default Value
0 Rule severity. Must be one of "error", "warn", "off". warn
1 Maximum allowed lines count per function 50

Example Config

{
  "rules": {
    "function-max-lines": ["warn",50]
  }
}

Examples

This rule does not have examples.

Version

This rule was introduced in Solhint 5.0.4

Resources