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
Open

Force named arguments for spec methods #14759

straight-shoota opened this issue Jun 26, 2024 · 0 comments

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant