Sha256: cf394a2e4d313febcbfde247385c7c6c671021d31f0ea937148766114aa0c8f7

Contents?: true

Size: 366 Bytes

Versions: 4

Compression:

Stored size: 366 Bytes

Contents

# frozen_string_literal: true

module RuboCop
  module Cop
    module Layout
      # Checks for spaces inside square brackets.
      class SpaceInsideBrackets < Cop
        include SpaceInside

        def specifics
          [
            %i[tLBRACK tLBRACK2],
            :tRBRACK,
            'square brackets'
          ]
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rubocop-0.51.0 lib/rubocop/cop/layout/space_inside_brackets.rb
rubocop-0.50.0 lib/rubocop/cop/layout/space_inside_brackets.rb
rubocop-0.49.1 lib/rubocop/cop/layout/space_inside_brackets.rb
rubocop-0.49.0 lib/rubocop/cop/layout/space_inside_brackets.rb