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

Force named arguments for spec methods #14759

Open
straight-shoota opened this issue Jun 26, 2024 · 0 comments · May be fixed by #14915
Open

Force named arguments for spec methods #14759

straight-shoota opened this issue Jun 26, 2024 · 0 comments · May be fixed by #14915
Labels
good first issue This is an issue suited for newcomers to become aquianted with working on the codebase. help wanted This issue is generally accepted and needs someone to pick it up kind:chore status:discussion topic:stdlib:specs

Comments

@straight-shoota
Copy link
Member

Spec methods like describe, it, etc. accept a number of positional parameters. Only the first one, description is really a good positional parameter. The others are options which should be passed as named arguments. Without a name there's no intuitive understanding what order the parameters would go in (did you know the second one is file?, ref #14757).

We should force all parameters after description to be named arguments.

@straight-shoota straight-shoota added good first issue This is an issue suited for newcomers to become aquianted with working on the codebase. kind:chore help wanted This issue is generally accepted and needs someone to pick it up labels Aug 7, 2024
@kamil-gwozdz kamil-gwozdz linked a pull request Aug 17, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue This is an issue suited for newcomers to become aquianted with working on the codebase. help wanted This issue is generally accepted and needs someone to pick it up kind:chore status:discussion topic:stdlib:specs
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant