Skip to content

Commit

Permalink
[Fix #10949] Fix documentation error for Layout/BlockAlignment
Browse files Browse the repository at this point in the history
Resolve: #10949
  • Loading branch information
ydah committed Aug 22, 2022
1 parent f333c28 commit 7ab1ac1
Showing 1 changed file with 14 additions and 12 deletions.
26 changes: 14 additions & 12 deletions lib/rubocop/cop/layout/block_alignment.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,23 +22,24 @@ module Layout
# # bad
#
# foo.bar
# .each do
# baz
# end
# .each do
# baz
# end
#
# # good
#
# variable = lambda do |i|
# i
# foo.bar
# .each do
# baz
# end
#
# @example EnforcedStyleAlignWith: start_of_block
# # bad
#
# foo.bar
# .each do
# baz
# end
# .each do
# baz
# end
#
# # good
#
Expand All @@ -51,16 +52,17 @@ module Layout
# # bad
#
# foo.bar
# .each do
# baz
# end
# .each do
# baz
# end
#
# # good
#
# foo.bar
# .each do
# baz
# baz
# end
#
class BlockAlignment < Base
include ConfigurableEnforcedStyle
include RangeHelp
Expand Down

0 comments on commit 7ab1ac1

Please sign in to comment.