Sha256: b286d3e961ce2fa4efcfe58a736e9779cb632d7b58390d0450227395968659fd
Contents?: true
Size: 541 Bytes
Versions: 5
Compression:
Stored size: 541 Bytes
Contents
# encoding: utf-8 module Rubocop module Cop module Style # Here we check if the parameters on a multi-line method call are # aligned. class AlignParameters < Cop include AutocorrectAlignment MSG = 'Align the parameters of a method call if they span ' + 'more than one line.' def on_send(node) _receiver, method, *args = *node return if method == :[]= return if args.size <= 1 check_alignment(args) end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems