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

Add rubocop #69

Merged
merged 6 commits into from
Aug 19, 2016
Merged

Add rubocop #69

merged 6 commits into from
Aug 19, 2016

Conversation

benbalter
Copy link
Contributor

Based off of Jekyll's Rubocop config.

else
block.call
yield
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wont this be a problem? What happens to block here? Is yield supposed to know to call block? 😕

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That was Rubocop's doing, and tests pass?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, it's just confusing 😜 I think yield doesn't care about the arity of the block so maybe just simplify this to

def save_from_errors(default = false)
  yield @client
rescue # ...
# ...
end

@parkr
Copy link
Member

parkr commented Aug 11, 2016

Thank you! ❤️ a couple comments above if you wouldn't mind clarifying.

@benbalter benbalter self-assigned this Aug 11, 2016
@benbalter benbalter merged commit cc619a5 into master Aug 19, 2016
@benbalter benbalter deleted the rubocop branch August 19, 2016 13:12
benbalter added a commit that referenced this pull request Aug 19, 2016
@jekyll jekyll locked and limited conversation to collaborators Apr 26, 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.

None yet

3 participants