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:  /(?:[[[:lower:]]_]|_\d+)$/,
  normalcase:  /(?:_\D*|[[[:upper:]][[:lower:]]]\d*)$/,
  non_integer: /[[[:upper:]][[:lower:]]_]$/
}.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