Skip to content

Latest commit

 

History

History
42 lines (32 loc) · 1.78 KB

private-vars-leading-underscore.md

File metadata and controls

42 lines (32 loc) · 1.78 KB
warning layout title
This is a dynamically generated file. Do not edit manually.
default
private-vars-leading-underscore | Solhint

private-vars-leading-underscore

Category Badge Default Severity Badge warn

Description

Private and internal names must start with a single underscore.

Options

This rule accepts an array of options:

Index Description Default Value
0 Rule severity. Must be one of "error", "warn", "off". warn
1 A JSON object with a single property "strict" specifying if the rule should apply to non state variables. Default: { strict: false }. {"strict":false}

Example Config

{
  "rules": {
    "private-vars-leading-underscore": ["warn",{"strict":false}]
  }
}

Examples

This rule does not have examples.

Version

This rule was introduced in Solhint 3.0.0-rc.3

Resources