From de0bcb6ce1b4e4e977ef306425fea894e94addf4 Mon Sep 17 00:00:00 2001 From: Will Binns Date: Sat, 26 Jan 2019 16:43:51 +0000 Subject: [PATCH] rubocop: Denote unused method arguments --- .rubocop_todo.yml | 8 -------- _plugins/liquid-die.rb | 2 +- _plugins/liquid-warn.rb | 2 +- 3 files changed, 2 insertions(+), 10 deletions(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 41d637b8..cc5c4f95 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -6,14 +6,6 @@ # Note that changes in the inspected code, or installation of new # versions of RuboCop, may require this file to be generated again. -# Offense count: 2 -# Cop supports --auto-correct. -# Configuration parameters: AllowUnusedKeywordArguments, IgnoreEmptyMethods. -Lint/UnusedMethodArgument: - Exclude: - - '_plugins/liquid-die.rb' - - '_plugins/liquid-warn.rb' - # Offense count: 5 Lint/UselessAssignment: Exclude: diff --git a/_plugins/liquid-die.rb b/_plugins/liquid-die.rb index 3b042901..2a26ce9e 100644 --- a/_plugins/liquid-die.rb +++ b/_plugins/liquid-die.rb @@ -18,7 +18,7 @@ module Jekyll @error = text end - def render(context) + def render(_context) ## Produces: Liquid die tag called. [] -- Error creating output [in ] abort("Liquid die tag called. " + @error + " -- Error creating output") end diff --git a/_plugins/liquid-warn.rb b/_plugins/liquid-warn.rb index 59e95834..c7c0b528 100644 --- a/_plugins/liquid-warn.rb +++ b/_plugins/liquid-warn.rb @@ -18,7 +18,7 @@ module Jekyll @warning = text end - def render(context) + def render(_context) ## Use "notice" instead of "warning" because we use grep to ## treat some Jekyll warnings as errors print "Notice: " + @warning + "\n"