Sha256: 355f9de74fb7d1245e47f4067714d6eea0da24e2f7e22f91e626d1c99c9a1883

Contents?: true

Size: 432 Bytes

Versions: 5

Compression:

Stored size: 432 Bytes

Contents

# encoding: utf-8

module Rubocop
  module Cop
    module Style
      # Here we check if the elements of a multi-line array literal are
      # aligned.
      class AlignArray < Cop
        include AutocorrectAlignment

        MSG = 'Align the elements of an array literal if they span more ' +
          'than one line.'

        def on_array(node)
          check_alignment(node.children)
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rubocop-0.17.0 lib/rubocop/cop/style/align_array.rb
rubocop-0.16.0 lib/rubocop/cop/style/align_array.rb
rubocop-0.15.0 lib/rubocop/cop/style/align_array.rb
rubocop-0.14.1 lib/rubocop/cop/style/align_array.rb
rubocop-0.14.0 lib/rubocop/cop/style/align_array.rb