Skip to content

Configure Layout/ExtraSpacing without AllowForAlignment

Joe Woodward requested to merge chore/configure-rubocop-layout-extraspacing into master

What does this MR do and why?

Disables AllowForAlignment in Layout/ExtraSpacing cop

Good

name = 'RuboCop'
website += "/rubocop/rubocop" unless cond
puts "rubocop" if debug

project_tree.map do |branch_or_model|
  name = branch_or_model.to_s if branch_or_model.is_a?(Symbol)
end

Bad

name      = "RuboCop"
website  += "/rubocop/rubocop" unless cond
puts        "rubocop"          if     debug

project_tree.map do |branch_or_model|
  name            =  branch_or_model.to_s if branch_or_model.is_a?(Symbol)
end
Edited by Joe Woodward

Merge request reports