diff options
author | Azul <azul@riseup.net> | 2016-05-25 13:00:41 +0200 |
---|---|---|
committer | Azul <azul@riseup.net> | 2016-05-25 13:00:41 +0200 |
commit | 5c0fa0fb7b10820f2956807cb457421bf1e00708 (patch) | |
tree | cb1cb31ba7a59fb2c70ce4fa853c83ad38ad1d4d | |
parent | 80e8ce856c8b9305327db1038f356b2b62da10bb (diff) |
rubocop: fix unused block params
-rw-r--r-- | .rubocop_todo.yml | 7 | ||||
-rw-r--r-- | Rakefile | 2 |
2 files changed, 1 insertions, 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. @@ -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 |