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

Fix: Fix Kernel?.fail signature doesn't have cause #1026

Merged
merged 1 commit into from
Jun 14, 2022

Conversation

sevenc-nanashi
Copy link
Contributor

No description provided.

Copy link
Member

@pocke pocke left a comment

Choose a reason for hiding this comment

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

Thanks!

@@ -871,8 +871,8 @@ module Kernel : BasicObject
# raise ArgumentError, "No parameters", caller
#
def self?.fail: () -> bot
| (String arg0) -> bot
| (_Exception arg0, ?untyped arg1, ?::Array[String] arg2) -> bot
| (String arg0, ?cause: Exception?) -> bot
Copy link
Member

Choose a reason for hiding this comment

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

[Goodcheck] Stop using parameter names like arg0 or arg1 (view)

The parameter names like arg0 or arg1 is not informative enough.
Try finding good parameter names from documents or arglists.
If you cannot find a good name, just delete the name of the parameters.

Rule
rbs.no_arg

You can close this issue if no need to fix it. Learn more.

Sider suggests two comments for arg0, but it is not related to your change. So I'll close the suggestions and merge your PR.

I'll fix the Sider suggestions in another PR.

@pocke pocke merged commit 56c3421 into ruby:master Jun 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants