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
grape-extra_validators-2.0.0 vendor/bundle/ruby/2.6.0/gems/rubocop-0.79.0/lib/rubocop/cop/mixin/configurable_naming.rb
files.com-1.0.1 vendor/bundle/ruby/2.5.0/gems/rubocop-0.85.1/lib/rubocop/cop/mixin/configurable_naming.rb
rbhint-0.85.1.rc1 lib/rubocop/cop/mixin/configurable_naming.rb
rubocop-0.85.1 lib/rubocop/cop/mixin/configurable_naming.rb
rbhint-0.8.5.rc1 lib/rubocop/cop/mixin/configurable_naming.rb
rubocop-0.85.0 lib/rubocop/cop/mixin/configurable_naming.rb
rubocop-0.84.0 lib/rubocop/cop/mixin/configurable_naming.rb
rubocop-0.83.0 lib/rubocop/cop/mixin/configurable_naming.rb
rubocop-0.82.0 lib/rubocop/cop/mixin/configurable_naming.rb
rubocop-0.81.0 lib/rubocop/cop/mixin/configurable_naming.rb
rubocop-0.80.1 lib/rubocop/cop/mixin/configurable_naming.rb
rubocop-0.80.0 lib/rubocop/cop/mixin/configurable_naming.rb
grape-extra_validators-1.0.0 vendor/bundle/ruby/2.4.0/gems/rubocop-0.79.0/lib/rubocop/cop/mixin/configurable_naming.rb
grape-extra_validators-1.0.0 vendor/bundle/ruby/2.6.0/gems/rubocop-0.79.0/lib/rubocop/cop/mixin/configurable_naming.rb
rubocop-0.79.0 lib/rubocop/cop/mixin/configurable_naming.rb
rubocop-0.78.0 lib/rubocop/cop/mixin/configurable_naming.rb
zuora_connect_ui-0.10.0 vendor/ruby/2.6.0/gems/rubocop-0.74.0/lib/rubocop/cop/mixin/configurable_naming.rb
zuora_connect_ui-0.10.0 vendor/ruby/2.6.0/gems/rubocop-0.75.0/lib/rubocop/cop/mixin/configurable_naming.rb
zuora_connect_ui-0.10.0 vendor/ruby/2.6.0/gems/rubocop-0.75.1/lib/rubocop/cop/mixin/configurable_naming.rb
zuora_connect_ui-0.10.0 vendor/ruby/2.6.0/gems/rubocop-0.76.0/lib/rubocop/cop/mixin/configurable_naming.rb