rubocop: Denote unused method arguments
This commit is contained in:
parent
282bfd16d7
commit
de0bcb6ce1
@ -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:
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user