Module: RuboCop::Cop::ConfigurableNaming
Relationships & Source Files | |
Extension / Inclusion / Inheritance Descendants | |
Included In:
| |
Super Chains via Extension / Inclusion / Inheritance | |
Instance Chain:
|
|
Defined in: | lib/rubocop/cop/mixin/configurable_naming.rb |
Overview
This module provides functionality for checking if names match the configured EnforcedStyle.
Constant Summary
-
FORMATS =
# File 'lib/rubocop/cop/mixin/configurable_naming.rb', line 10{ snake_case: /^@{0,2}[\d[[:lower:]]_]+[!?=]?$/, camelCase: /^@{0,2}(?:_|_?[[[:lower:]]][\d[[:lower:]][[:upper:]]]*)[!?=]?$/ }.freeze
ConfigurableEnforcedStyle
- Included
Instance Attribute Summary
ConfigurableEnforcedStyle
- Included
Instance Method Summary
ConfigurableFormatting
- Included
#check_name, | |
#class_emitter_method? | A class emitter method is a singleton method in a class/module, where the method has the same name as a class defined in the class/module. |
#report_opposing_styles, #valid_name? |