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

refactor the TooFewArguments check to start checking with named arguments #7348

Merged
merged 3 commits into from Jan 9, 2022

Conversation

orklah
Copy link
Collaborator

@orklah orklah commented Jan 8, 2022

This will fix #6491

It turned out to be a much larger change than I anticipated.

I had to change the way we loop over the parameters (to instead loop over arguments). Then it turned out that unpacking was handled globally with a single number, but it's now important to have the number of unpacking of each individual arg.

One slight change, before there was a single TooFewArguments emitted with a message 'expected 2 arguments, saw 1'. Now we'll emit as much TooFewArguments as there are missing arguments and we'll name each one

@orklah orklah force-pushed the missing-named-param branch 2 times, most recently from 5bd1b85 to 7b93f8a Compare January 8, 2022 22:00
@orklah orklah added the release:fix The PR will be included in 'Fixes' section of the release notes label Jan 9, 2022
@orklah orklah merged commit 2c041f3 into vimeo:4.x Jan 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release:fix The PR will be included in 'Fixes' section of the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Required named parameter not detected if missing
1 participant