Sha256: 9d32546c3891d50df85fe08dd8571c2cde1504141d589ec4d10c03372cb9d83c

Contents?: true

Size: 451 Bytes

Versions: 12

Compression:

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

Version data entries

12 entries across 12 versions & 2 rubygems

Version Path
plaid-14.13.0 vendor/bundle/ruby/3.0.0/gems/rubocop-0.91.1/lib/rubocop/cop/mixin/configurable_numbering.rb
plaid-14.12.1 vendor/bundle/ruby/3.0.0/gems/rubocop-0.91.1/lib/rubocop/cop/mixin/configurable_numbering.rb
plaid-14.12.0 vendor/bundle/ruby/2.6.0/gems/rubocop-0.91.1/lib/rubocop/cop/mixin/configurable_numbering.rb
plaid-14.11.1 vendor/bundle/ruby/2.6.0/gems/rubocop-0.91.1/lib/rubocop/cop/mixin/configurable_numbering.rb
plaid-14.10.0 vendor/bundle/ruby/2.6.0/gems/rubocop-0.91.1/lib/rubocop/cop/mixin/configurable_numbering.rb
plaid-14.7.0 vendor/bundle/ruby/2.6.0/gems/rubocop-0.91.1/lib/rubocop/cop/mixin/configurable_numbering.rb
rubocop-1.1.0 lib/rubocop/cop/mixin/configurable_numbering.rb
rubocop-1.0.0 lib/rubocop/cop/mixin/configurable_numbering.rb
rubocop-0.93.1 lib/rubocop/cop/mixin/configurable_numbering.rb
rubocop-0.93.0 lib/rubocop/cop/mixin/configurable_numbering.rb
rubocop-0.92.0 lib/rubocop/cop/mixin/configurable_numbering.rb
rubocop-0.91.1 lib/rubocop/cop/mixin/configurable_numbering.rb