forbidden-name

Ban configured names by identifier kind and pattern.

Message template

Do not use forbidden {kind} name ‘{name}’.

Placeholder values are filled in when the violation is reported.

Settings

SettingDescriptionTypeDefault
forbidden_names Names to forbid. Each entry has the form kind:pattern[|message], where kind is any, variable, parameter, function, class, attribute, import, or alias. Patterns support shell-style wildcards; for example, 'class:*Manager|Use a specific role name'. list []