Use communicative method parameters (#7566)

Merge pull request 7566
This commit is contained in:
Ashwin Maroli 2019-03-15 22:24:24 +05:30 committed by jekyllbot
parent 67107f0ec5
commit 8ccb013f85
3 changed files with 3 additions and 6 deletions

View File

@ -92,9 +92,6 @@ Naming/MemoizedInstanceVariableName:
- lib/jekyll/drops/site_drop.rb
- lib/jekyll/drops/unified_payload_drop.rb
- lib/jekyll/page_without_a_file.rb
Naming/UncommunicativeMethodParamName:
AllowedNames:
- _
Security/MarshalLoad:
Exclude:
- !ruby/regexp /test\/.*.rb$/

View File

@ -283,7 +283,7 @@ module Jekyll
config
end
def renamed_key(old, new, config, _ = nil)
def renamed_key(old, new, config)
if config.key?(old)
Jekyll::Deprecator.deprecation_message "The '#{old}' configuration" \
" option has been renamed to '#{new}'. Please update your config" \

View File

@ -37,7 +37,7 @@ module Jekyll
# ext - The String extension to check.
#
# Returns true if it matches, false otherwise.
def matches(_)
def matches(_ext)
false
end
@ -46,7 +46,7 @@ module Jekyll
# ext - The String extension or original file.
#
# Returns The String output file extension.
def output_ext(_)
def output_ext(_ext)
nil
end