Sha256: b0e5568b62e58fb2efb80cd39ed1c5f079816310cf976a5f87b2eda44cc203e9
Contents?: true
Size: 396 Bytes
Versions: 2
Compression:
Stored size: 396 Bytes
Contents
# frozen_string_literal: true module RuboCop module Cop # This module provides functionality for checking if numbering match the # configured EnforcedStyle. module ConfigurableNumbering include ConfigurableFormatting FORMATS = { snake_case: /(?:\D|_\d+)$/, normalcase: /(?:\D|[^_\d]\d+)$/, non_integer: /\D$/ }.freeze end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rubocop-1.3.0 | lib/rubocop/cop/mixin/configurable_numbering.rb |
rubocop-1.2.0 | lib/rubocop/cop/mixin/configurable_numbering.rb |