-
-
Notifications
You must be signed in to change notification settings - Fork 9.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rubocop -a on lib/jekyll #5666
Rubocop -a on lib/jekyll #5666
Conversation
def read_static_file(file_path, full_path) | ||
relative_dir = Jekyll.sanitized_path( | ||
relative_directory, | ||
File.dirname(file_path) | ||
).chomp("/.") | ||
|
||
files << StaticFile.new(site, site.source, relative_dir, | ||
File.basename(full_path), self) | ||
File.basename(full_path), self) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
whoa! rubocop did this?
may I suggest: ?
files << StaticFile.new(
site,
site.source,
relative_dir,
File.basename(full_path),
self
)
@@ -30,8 +30,7 @@ def data | |||
@data | |||
end | |||
|
|||
def trigger_hooks(*) | |||
end | |||
def trigger_hooks(*); end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
jus curious. why do we have an empty method?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
So it can be overridden 👍
noticed this just now.. PRs shouldn't have a |
@jekyllbot: merge +dev |
Fix #5665