Module: RuboCop::Cop::ConfigurableNumbering
- Includes:
- ConfigurableFormatting
- Included in:
- Style::VariableNumber
- Defined in:
- lib/rubocop/cop/mixin/configurable_numbering.rb
Overview
This module provides functionality for checking if numbering match the configured EnforcedStyle.
Constant Summary collapse
- FORMATS =
{ snake_case: /(?:[a-z_]|_\d+)$/, normalcase: /(?:_\D*|[A-Za-z]\d*)$/, non_integer: /[A-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