Module: RuboCop::Cop::ConfigurableNaming
- Includes:
- ConfigurableFormatting
- Included in:
- Naming::MethodName, Naming::VariableName
- Defined in:
- lib/rubocop/cop/mixin/configurable_naming.rb
Overview
This module provides functionality for checking if names match the configured EnforcedStyle.
Constant Summary collapse
- FORMATS =
{ snake_case: /^@{0,2}[\d[[:lower:]]_]+[!?=]?$/, camelCase: /^@{0,2}(?:_|_?[[[:lower:]]][\d[[:lower:]][[:upper:]]]*)[!?=]?$/ }.freeze
Method Summary
Methods included from ConfigurableFormatting
#check_name, #class_emitter_method?, #report_opposing_styles, #valid_name?
Methods included from ConfigurableEnforcedStyle
#alternative_style, #alternative_styles, #ambiguous_style_detected, #correct_style_detected, #detected_style, #detected_style=, #no_acceptable_style!, #no_acceptable_style?, #opposite_style_detected, #style, #style_configured?, #style_detected, #style_parameter_name, #supported_styles, #unexpected_style_detected