Rubocop: Lint/UnusedMethodArgument

This commit is contained in:
Pat Hawks 2016-01-03 17:07:39 -08:00
parent 11f0aab4b1
commit e3189e3828
No known key found for this signature in database
GPG Key ID: F1746FF5F18B3D1B
8 changed files with 8 additions and 8 deletions

View File

@ -65,7 +65,7 @@ module Jekyll
# options - A Hash of options passed to the command
#
# Returns nothing.
def watch(site, options)
def watch(_site, options)
External.require_with_graceful_fail 'jekyll-watch'
Jekyll::Watcher.watch(options)
end

View File

@ -58,7 +58,7 @@ module Jekyll
conflicting_urls
end
def fsnotify_buggy?(site)
def fsnotify_buggy?(_site)
return true unless Utils::Platforms.osx?
if Dir.pwd != `pwd`.strip
Jekyll.logger.error " " + <<-STR.strip.gsub(/\n\s+/, "\n ")

View File

@ -37,7 +37,7 @@ module Jekyll
#
private
def validate_and_ensure_charset(req, res)
def validate_and_ensure_charset(_req, res)
key = res.header.keys.grep(/content-type/i).first
typ = res.header[key]

View File

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

View File

@ -5,7 +5,7 @@ module Jekyll
priority :lowest
def matches(ext)
def matches(_ext)
true
end

View File

@ -56,7 +56,7 @@ module Jekyll
extname_list.include?(ext.downcase)
end
def output_ext(ext)
def output_ext(_ext)
".html"
end

View File

@ -47,7 +47,7 @@ module Jekyll
end
protected
def rouge_formatter(lexer)
def rouge_formatter(_lexer)
Rouge::Formatters::HTML.new(:wrap => false)
end
end

View File

@ -67,7 +67,7 @@ module Jekyll
# dot_dirs - The Array of subdirectories in the dir.
#
# Returns nothing.
def retrieve_dirs(base, dir, dot_dirs)
def retrieve_dirs(_base, dir, dot_dirs)
dot_dirs.map { |file|
dir_path = site.in_source_dir(dir, file)
rel_path = File.join(dir, file)