Ok, I'll work on that adjustment. For future reference, is there a
description somewhere of what constitutes a style vs lint cop? (Both of
these seem like the same category of thing to me, which is why I ask. I'm
ok with whatever categorization is consistent.)

On Monday, April 14, 2014, Jonas Arvidsson <notifications@github.com> wrote:

> In lib/rubocop/cop/lint/block_alignment.rb:
>
> > @@ -145,6 +145,58 @@ def already_processed_node?(node)
> >          def block_is_on_next_line?(begin_node, block_node)
> >            begin_node.loc.line != block_node.loc.line
> >          end
> > +
> > +        def autocorrect(node)
> > +          key, _ = *node
> > +          source = node.loc.expression.source_buffer
> > +
> > +          @corrections << lambda do |corrector|
> > +            start_col = key.loc.expression.column
> > +
> > +            ensure_newline_after_block_start(corrector, node, start_col)
>
> [image: :+1:] Adding another cop for that kind of offenses seems like a
> very good idea to me! One reason is that it would be a style cop while endalignment is checked by lint cops. I hope
> @bbatsov <https://github.com/bbatsov> and @yujinakayama<https://github.com/yujinakayama>agree.
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/bbatsov/rubocop/pull/1002/files#r11604526>
> .
>


-- 
Barun Singh
Founder & CTO
WegoWise.com