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

Optional Keyword Arguments #771

Merged
merged 4 commits into from
May 25, 2021
Merged

Optional Keyword Arguments #771

merged 4 commits into from
May 25, 2021

Conversation

esse
Copy link
Contributor

@esse esse commented Jul 30, 2019

When using optional keyword arguments, put them at the end of the parameters list.

Otherwise, it's much harder to spot optional arguments there, if they're hidden somewhere in the middle.

When using optional keyword arguments, put them at the end of the parameters list.

Otherwise, it's much harder to spot optional arguments there, if they're hidden somewhere in the middle.
README.adoc Outdated Show resolved Hide resolved
@esse esse requested a review from bbatsov September 12, 2019 19:54
@esse
Copy link
Contributor Author

esse commented Jun 14, 2020

Hi @bbatsov, any chance you could look into this again?

@pirj
Copy link
Member

pirj commented Feb 22, 2021

Reworded.

@pirj pirj requested review from andyw8 and koic February 23, 2021 09:50
Copy link
Member

@pirj pirj left a comment

Choose a reason for hiding this comment

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

Thanks!

@esse
Copy link
Contributor Author

esse commented May 7, 2021

merge-request-bump ;)

README.adoc Outdated Show resolved Hide resolved
README.adoc Outdated Show resolved Hide resolved
@bbatsov
Copy link
Collaborator

bbatsov commented May 7, 2021

Otherwise, it's much harder to spot optional arguments there, if they're hidden somewhere in the middle.

I'd also mention this rational in the guideline, so it's clear what we're aiming for.

@esse
Copy link
Contributor Author

esse commented May 25, 2021

@bbatsov I've introduced your comments :)

README.adoc Show resolved Hide resolved
@pirj pirj merged commit c5d2770 into rubocop:master May 25, 2021
@pirj
Copy link
Member

pirj commented May 25, 2021

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants