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 # options - A Hash of options passed to the command
# #
# Returns nothing. # Returns nothing.
def watch(site, options) def watch(_site, options)
External.require_with_graceful_fail 'jekyll-watch' External.require_with_graceful_fail 'jekyll-watch'
Jekyll::Watcher.watch(options) Jekyll::Watcher.watch(options)
end end

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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