rubocop: Denote unused method arguments

This commit is contained in:
Will Binns 2019-01-26 16:43:51 +00:00 committed by Will Binns
parent 282bfd16d7
commit de0bcb6ce1
3 changed files with 2 additions and 10 deletions

View File

@ -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:

View File

@ -18,7 +18,7 @@ module Jekyll
@error = text
end
def render(context)
def render(_context)
## Produces: Liquid die tag called. [<Error.>] -- Error creating output [in <output file name>]
abort("Liquid die tag called. " + @error + " -- Error creating output")
end

View File

@ -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"