From 5c0fa0fb7b10820f2956807cb457421bf1e00708 Mon Sep 17 00:00:00 2001 From: Azul Date: Wed, 25 May 2016 13:00:41 +0200 Subject: rubocop: fix unused block params --- .rubocop_todo.yml | 7 ------- Rakefile | 2 +- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 533d31d..e636a8b 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -45,13 +45,6 @@ Lint/RescueException: - 'lib/nickserver/config.rb' - 'lib/nickserver/couch/fetch_key.rb' -# Offense count: 2 -# Cop supports --auto-correct. -# Configuration parameters: AllowUnusedKeywordArguments. -Lint/UnusedBlockArgument: - Exclude: - - 'Rakefile' - # Offense count: 5 # Cop supports --auto-correct. # Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods. diff --git a/Rakefile b/Rakefile index c1eb913..3a207d5 100644 --- a/Rakefile +++ b/Rakefile @@ -26,7 +26,7 @@ $spec = eval(File.read(File.join($base_dir, $spec_path))) $gem_path = File.join($base_dir, 'pkg', "#{$spec.name}-#{$spec.version}.gem") def run(cmd) - PTY.spawn(cmd) do |output, input, pid| + PTY.spawn(cmd) do |output, _input, _pid| begin while line = output.gets do puts line -- cgit v1.2.3