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

Better name validation for methods and parameters #987

Merged
merged 2 commits into from
Jun 14, 2022
Merged

Conversation

Morriar
Copy link
Collaborator

@Morriar Morriar commented Jun 14, 2022

Motivation

Fixes #969.
Closes #973.

Implementation

Use the fix proposed here and factorize it under RBIHelper.

Also tighten the parameter name validation while at it.

Tests

See included tests.

And provide a better implementation.

Signed-off-by: Alexandre Terrasa <alexandre.terrasa@shopify.com>
Signed-off-by: Alexandre Terrasa <alexandre.terrasa@shopify.com>
@Morriar Morriar added the bugfix label Jun 14, 2022
@Morriar Morriar requested a review from a team June 14, 2022 17:41
@Morriar Morriar self-assigned this Jun 14, 2022
@Morriar Morriar changed the title At create method Better name validation for methods and parameters Jun 14, 2022
Copy link
Member

@paracycle paracycle left a comment

Choose a reason for hiding this comment

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

Amazing, thank you!

@Morriar Morriar merged commit c900c38 into main Jun 14, 2022
@Morriar Morriar deleted the at-create-method branch June 14, 2022 19:00
paracycle pushed a commit that referenced this pull request Jul 1, 2022
Better name validation for methods and parameters
@paracycle paracycle added the backported Backported to stable branch label Jul 1, 2022
@shopify-shipit shopify-shipit bot temporarily deployed to production July 7, 2022 17:53 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backported Backported to stable branch bugfix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Generating rbi for cucumber results in "There are parse errors in the generated RBI files."
2 participants