Skip to content

Commit

Permalink
Merge pull request #6645 from francoisa/master
Browse files Browse the repository at this point in the history
Fix for new_cop rake task
  • Loading branch information
Drenmi committed Jan 22, 2019
2 parents 603d656 + 494f11f commit 08ca192
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/rubocop/cop/generator/configuration_injector.rb
Expand Up @@ -47,8 +47,9 @@ def find_target_line
configuration_entries.find.with_index do |line, index|
next if comment?(line)

break index if badge.to_s < line
return index if badge.to_s < line
end
configuration_entries.size - 1
end

def comment?(yaml)
Expand Down

0 comments on commit 08ca192

Please sign in to comment.