Module: RuboCop::Cop::ConfigurableNaming
- Includes:
- ConfigurableFormatting
- Included in:
- Style::MethodName, Style::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}[\da-z_]+[!?=]?$/, camelCase: /^@{0,2}_?[a-z][\da-zA-Z]+[!?=]?$/ }.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_detected, #style_parameter_name, #supported_styles, #unexpected_style_detected