diff options
author | Samuel Giddins <segiddins@segiddins.me> | 2015-11-26 13:02:51 -0600 |
---|---|---|
committer | Samuel Giddins <segiddins@segiddins.me> | 2015-11-26 13:02:51 -0600 |
commit | 046f2831c1518519c47b8b5be97c1ed8aef4e58c (patch) | |
tree | 627f6dad18e7a17bcaf9eaed734e5eb2ab4b114d | |
parent | dc22a6eb568639174abb0b0c70c3614c0aabfa0d (diff) | |
download | bundler-seg-rubocop.tar.gz |
[RuboCop] Enable Lint/NonLocalExitFromIteratorseg-rubocop
-rw-r--r-- | .rubocop_todo.yml | 5 | ||||
-rw-r--r-- | lib/bundler/rubygems_integration.rb | 2 |
2 files changed, 1 insertions, 6 deletions
diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 35d25c3bb4..a97947f794 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -26,11 +26,6 @@ Lint/NestedMethodDefinition: Exclude: - 'lib/bundler/graph.rb' -# Offense count: 1 -Lint/NonLocalExitFromIterator: - Exclude: - - 'lib/bundler/rubygems_integration.rb' - # Offense count: 5 Lint/RescueException: Exclude: diff --git a/lib/bundler/rubygems_integration.rb b/lib/bundler/rubygems_integration.rb index 22143ec5ca..96b9101610 100644 --- a/lib/bundler/rubygems_integration.rb +++ b/lib/bundler/rubygems_integration.rb @@ -282,7 +282,7 @@ module Bundler ::Kernel.send(:define_method, :gem) do |dep, *reqs| if executables.include? File.basename(caller.first.split(":").first) - return + break end reqs.pop if reqs.last.is_a?(Hash) |