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

Add rule requiring type parameters #649

Closed
marekdedic opened this issue Feb 2, 2025 · 1 comment · Fixed by #651
Closed

Add rule requiring type parameters #649

marekdedic opened this issue Feb 2, 2025 · 1 comment · Fixed by #651

Comments

@marekdedic
Copy link
Contributor

Hi,
I'd like to add a rule that requires type parameters to vi.fn() because otherwise it mocks a function with any as parameters and return value. I am at the moment not sure if there are any other functions that this rule should apply to similarly.

I'm willing to make a PR if this is greenlit by the maintainers.

@veritem
Copy link
Member

veritem commented Feb 2, 2025

hey @marekdedic, a pr is welcome! let's start with vi.fn() for now

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

Successfully merging a pull request may close this issue.

2 participants