Skip to content

Files

Latest commit

 

History

History
26 lines (18 loc) · 618 Bytes

function-name.md

File metadata and controls

26 lines (18 loc) · 618 Bytes

Pattern: Invalid function name

Issue: -

Description

Applies a naming convention to function names and method names. You can configure the naming convention by passing parameters.

Configuration

The default values are:

[true, {
    "method-regex": "^[a-z][\\w\\d]+$",
    "private-method-regex": "^[a-z][\\w\\d]+$",
    "protected-method-regex": "^[a-z][\\w\\d]+$",
    "static-method-regex": "^[A-Z_\\d]+$",
    "function-regex": "^[a-z][\\w\\d]+$"
}]

Further Reading