Skip to content
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

Merged
merged 3 commits into from
Dec 18, 2016
Merged

Rubocop -a on lib/jekyll #5666

merged 3 commits into from
Dec 18, 2016

Conversation

DirtyF
Copy link
Member

@DirtyF DirtyF commented Dec 18, 2016

Fix #5665

@DirtyF DirtyF added the bug label Dec 18, 2016
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)
Copy link
Member

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
Copy link
Member

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?

Copy link
Member

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 👍

@ashmaroli
Copy link
Member

noticed this just now.. PRs shouldn't have a bug label.. that's better for issue tickets. PRs should be sporting a bug-fix label instead.. 😃

@DirtyF DirtyF requested a review from parkr December 18, 2016 08:56
@DirtyF DirtyF removed the bug label Dec 18, 2016
@DirtyF
Copy link
Member Author

DirtyF commented Dec 18, 2016

@jekyllbot: merge +dev

@jekyllbot jekyllbot merged commit 7231088 into jekyll:master Dec 18, 2016
jekyllbot added a commit that referenced this pull request Dec 18, 2016
@DirtyF DirtyF deleted the rubocop-jekyll branch December 18, 2016 10:03
@jekyll jekyll locked and limited conversation to collaborators Jul 11, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Jekyll has invalid formatting for deprecation message.
6 participants