From 1df89913ad445a5c9627ab4970825accc634305c Mon Sep 17 00:00:00 2001 From: Kyrylo Silin Date: Sat, 2 Mar 2019 13:31:20 +0200 Subject: [PATCH] rubocop: fix offences of the Style/RedundantParentheses cop --- .rubocop_todo.yml | 13 ------------- lib/pry/command.rb | 2 +- lib/pry/commands/ls/local_vars.rb | 2 +- lib/pry/indent.rb | 2 +- spec/command_integration_spec.rb | 2 +- spec/commands/edit_spec.rb | 2 +- spec/fixtures/example_nesting.rb | 2 +- spec/method_spec.rb | 2 +- 8 files changed, 7 insertions(+), 20 deletions(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index a522d4fe..dce8efce 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -314,19 +314,6 @@ Style/PerlBackrefs: - 'lib/pry/method.rb' - 'lib/pry/rubygem.rb' -# Offense count: 8 -# Cop supports --auto-correct. -Style/RedundantParentheses: - Exclude: - - 'lib/pry/command.rb' - - 'lib/pry/commands/ls/jruby_hacks.rb' - - 'lib/pry/commands/ls/local_vars.rb' - - 'lib/pry/indent.rb' - - 'spec/command_integration_spec.rb' - - 'spec/commands/edit_spec.rb' - - 'spec/fixtures/example_nesting.rb' - - 'spec/method_spec.rb' - # Offense count: 6 # Cop supports --auto-correct. # Configuration parameters: AllowMultipleReturnValues. diff --git a/lib/pry/command.rb b/lib/pry/command.rb index f58c8a3e..3585d097 100644 --- a/lib/pry/command.rb +++ b/lib/pry/command.rb @@ -421,7 +421,7 @@ class Pry gems_not_installed = gems_needed.reject { |g| Rubygem.installed?(g) } output.puts(<