-
Notifications
You must be signed in to change notification settings - Fork 10
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
Bump rubocop from 0.89.1 to 0.90.0 #1845
Bump rubocop from 0.89.1 to 0.90.0 #1845
Conversation
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.
🎉
Bumps [rubocop](https://github.com/rubocop-hq/rubocop) from 0.89.1 to 0.90.0. - [Release notes](https://github.com/rubocop-hq/rubocop/releases) - [Changelog](https://github.com/rubocop-hq/rubocop/blob/master/CHANGELOG.md) - [Commits](rubocop/rubocop@v0.89.1...v0.90.0) Signed-off-by: dependabot-preview[bot] <[email protected]>
Style/KeywordParametersOrder: Place optional keyword parameters at the end of the parameters list. (https://rubystyle.guide#keyword-parameters-order)
https://docs.rubocop.org/rubocop/cops_style.html#stylecombinableloops but the thing is, the second depends on the outcome of the first
5c40cc1
to
0584f30
Compare
@@ -198,7 +198,7 @@ def index(attr, role:, type: :string) | |||
# attribute but instead is determined by a given lambda | |||
# | |||
# Sorry rubocop, but you index something *AS* something. It's communicative. | |||
def custom_index(attr, type: :string, role:, as:) # rubocop:disable Naming/MethodParameterName | |||
def custom_index(attr, role:, as:, type: :string) # rubocop:disable Naming/MethodParameterName |
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 I gather there's some new cop that has decided that named params with defaults should for some reason be exactly backwards of normal params with defaults?
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.
Yes. Style/KeywordParametersOrder: Place optional keyword parameters at the end of the parameters list. (https://rubystyle.guide#keyword-parameters-order)
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.
Huh. I guess this actually makes it more consistent with the other ordering, now that I think about it.
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.
Style/KeywordParametersOrder: Place optional keyword parameters at the end of the parameters list. (https://rubystyle.guide#keyword-parameters-order)
is the new cop
Docs are here...https://docs.rubocop.org/rubocop/cops_style.html#stylekeywordparametersorder
So i guess if named param has got a default, it should be at the end of the list
(guess im late to the party 😆 )
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.
Is there a jinx emoji?
@@ -198,7 +198,7 @@ def index(attr, role:, type: :string) | |||
# attribute but instead is determined by a given lambda | |||
# | |||
# Sorry rubocop, but you index something *AS* something. It's communicative. | |||
def custom_index(attr, type: :string, role:, as:) # rubocop:disable Naming/MethodParameterName | |||
def custom_index(attr, role:, as:, type: :string) # rubocop:disable Naming/MethodParameterName |
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.
Huh. I guess this actually makes it more consistent with the other ordering, now that I think about it.
Bumps rubocop from 0.89.1 to 0.90.0.
Release notes
Sourced from rubocop's releases.
Changelog
Sourced from rubocop's changelog.
Commits
95305ff
Cut 0.90eb04490
Merge pull request #8595 from marcandre/struct_autocorrect71c4818
Merge branch 'master' into struct_autocorrect6d781b0
Revert "Mark Cops and Formatters as private"f69a7a8
Merge pull request #8624 from Skipants/masterf877e02
FixStyle/CaseLikeIf
not properly handling overriden equality methods6cab599
Add workaround to avoid crash in Truffleruby (#8602)2b7607c
Fix an infinite loop error forLayout/EmptyLineBetweenDefs
31a921d
UseCop::Base
API forLayout
department [T-Z]6c05f69
UseCop::Base
API forLayout
department [N-S]Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebase
will rebase this PR@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it@dependabot merge
will merge this PR after your CI passes on it@dependabot squash and merge
will squash and merge this PR after your CI passes on it@dependabot cancel merge
will cancel a previously requested merge and block automerging@dependabot reopen
will reopen this PR if it is closed@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot ignore this major version
will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor version
will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)@dependabot use these labels
will set the current labels as the default for future PRs for this repo and language@dependabot use these reviewers
will set the current reviewers as the default for future PRs for this repo and language@dependabot use these assignees
will set the current assignees as the default for future PRs for this repo and language@dependabot use this milestone
will set the current milestone as the default for future PRs for this repo and language@dependabot badge me
will comment on this PR with code to add a "Dependabot enabled" badge to your readmeAdditionally, you can set the following in your Dependabot dashboard: