summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAzul <azul@riseup.net>2016-05-25 13:00:41 +0200
committerAzul <azul@riseup.net>2016-05-25 13:00:41 +0200
commit5c0fa0fb7b10820f2956807cb457421bf1e00708 (patch)
treecb1cb31ba7a59fb2c70ce4fa853c83ad38ad1d4d
parent80e8ce856c8b9305327db1038f356b2b62da10bb (diff)
rubocop: fix unused block params
-rw-r--r--.rubocop_todo.yml7
-rw-r--r--Rakefile2
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.
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