Module: RuboCop::Cop::ConfigurableNumbering

Includes:
ConfigurableFormatting
Included in:
Naming::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:  /(?:\D|_\d+|\A\d+)\z/,
  normalcase:  /(?:\D|[^_\d]\d+|\A\d+)\z|#{implicit_param}/,
  non_integer: /(\D|\A\d+)\z|#{implicit_param}/
}.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