Sha256: e009a6713f315df7381932e73f0d49c3a4444b0e6882f2e8f90de211ea4f46cf

Contents?: true

Size: 385 Bytes

Versions: 77

Compression:

Stored size: 385 Bytes

Contents

# frozen_string_literal: true

module RuboCop
  module Cop
    # This module provides functionality for checking if names match the
    # configured EnforcedStyle.
    module ConfigurableNaming
      include ConfigurableFormatting

      FORMATS = {
        snake_case: /^@{0,2}[\da-z_]+[!?=]?$/,
        camelCase:  /^@{0,2}_?[a-z][\da-zA-Z]+[!?=]?$/
      }.freeze
    end
  end
end

Version data entries

77 entries across 58 versions & 6 rubygems

Version Path
zuora_connect_ui-0.8.2 vendor/ruby/2.6.0/gems/rubocop-0.74.0/lib/rubocop/cop/mixin/configurable_naming.rb
zuora_connect_ui-0.8.2 vendor/ruby/2.6.0/gems/rubocop-0.72.0/lib/rubocop/cop/mixin/configurable_naming.rb
zuora_connect_ui-0.8.1 vendor/ruby/2.6.0/gems/rubocop-0.74.0/lib/rubocop/cop/mixin/configurable_naming.rb
zuora_connect_ui-0.8.1 vendor/ruby/2.6.0/gems/rubocop-0.72.0/lib/rubocop/cop/mixin/configurable_naming.rb
zuora_connect_ui-0.8.0 vendor/ruby/2.6.0/gems/rubocop-0.74.0/lib/rubocop/cop/mixin/configurable_naming.rb
zuora_connect_ui-0.8.0 vendor/ruby/2.6.0/gems/rubocop-0.72.0/lib/rubocop/cop/mixin/configurable_naming.rb
rubocop-0.74.0 lib/rubocop/cop/mixin/configurable_naming.rb
rubocop-0.73.0 lib/rubocop/cop/mixin/configurable_naming.rb
zuora_connect_ui-0.7.1 vendor/ruby/2.6.0/gems/rubocop-0.72.0/lib/rubocop/cop/mixin/configurable_naming.rb
zuora_connect_ui-0.7.0 vendor/ruby/2.6.0/gems/rubocop-0.72.0/lib/rubocop/cop/mixin/configurable_naming.rb
rubocop-0.72.0 lib/rubocop/cop/mixin/configurable_naming.rb
rubocop-0.71.0 lib/rubocop/cop/mixin/configurable_naming.rb
rubocop-0.70.0 lib/rubocop/cop/mixin/configurable_naming.rb
rubocop-0.59.2 lib/rubocop/cop/mixin/configurable_naming.rb
rubocop-0.59.1 lib/rubocop/cop/mixin/configurable_naming.rb
rubocop-0.59.0 lib/rubocop/cop/mixin/configurable_naming.rb
rubocop-0.58.2 lib/rubocop/cop/mixin/configurable_naming.rb
rubocop-0.58.1 lib/rubocop/cop/mixin/configurable_naming.rb
rubocop-0.58.0 lib/rubocop/cop/mixin/configurable_naming.rb
vagrant-packet-0.1.1 vendor/bundle/ruby/2.4.0/gems/rubocop-0.57.2/lib/rubocop/cop/mixin/configurable_naming.rb