Sha256: 691a684efc0145631b77bd502a284a32a1d9a551ec2a17bbab92d1169065e7b7

Contents?: true

Size: 391 Bytes

Versions: 10

Compression:

Stored size: 391 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

10 entries across 10 versions & 3 rubygems

Version Path
grape-extra_validators-2.0.0 vendor/bundle/ruby/2.6.0/gems/rubocop-0.90.0/lib/rubocop/cop/mixin/configurable_naming.rb
rubocop-0.90.0 lib/rubocop/cop/mixin/configurable_naming.rb
rubocop-0.89.1 lib/rubocop/cop/mixin/configurable_naming.rb
rubocop-0.89.0 lib/rubocop/cop/mixin/configurable_naming.rb
rubocop-0.88.0 lib/rubocop/cop/mixin/configurable_naming.rb
rbhint-0.87.1.rc1 lib/rubocop/cop/mixin/configurable_naming.rb
rubocop-0.87.1 lib/rubocop/cop/mixin/configurable_naming.rb
rubocop-0.87.0 lib/rubocop/cop/mixin/configurable_naming.rb
rubocop-0.86.0 lib/rubocop/cop/mixin/configurable_naming.rb
rbhint-0.85.1.rc2 lib/rubocop/cop/mixin/configurable_naming.rb