Rubocop: Lint/UnusedMethodArgument
This commit is contained in:
parent
11f0aab4b1
commit
e3189e3828
|
@ -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
|
||||
|
|
|
@ -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 ")
|
||||
|
|
|
@ -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]
|
||||
|
||||
|
|
|
@ -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 " \
|
||||
|
|
|
@ -5,7 +5,7 @@ module Jekyll
|
|||
|
||||
priority :lowest
|
||||
|
||||
def matches(ext)
|
||||
def matches(_ext)
|
||||
true
|
||||
end
|
||||
|
||||
|
|
|
@ -56,7 +56,7 @@ module Jekyll
|
|||
extname_list.include?(ext.downcase)
|
||||
end
|
||||
|
||||
def output_ext(ext)
|
||||
def output_ext(_ext)
|
||||
".html"
|
||||
end
|
||||
|
||||
|
|
|
@ -47,7 +47,7 @@ module Jekyll
|
|||
end
|
||||
|
||||
protected
|
||||
def rouge_formatter(lexer)
|
||||
def rouge_formatter(_lexer)
|
||||
Rouge::Formatters::HTML.new(:wrap => false)
|
||||
end
|
||||
end
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue