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 ability to lint only test/benchmark/fuzz functions #30

Open
GiedriusS opened this issue Mar 4, 2022 · 1 comment
Open

Add ability to lint only test/benchmark/fuzz functions #30

GiedriusS opened this issue Mar 4, 2022 · 1 comment

Comments

@GiedriusS
Copy link

Thank you for this tool! I have a use case where I want to ban time.Sleep from test functions to avoid flaky tests. Instead of time.Sleep with a hard-coded timeout, I want to push others to use functions that would retry some operations continuously until some deadline. For that, faillint should be able to operate only on Test*, Benchmark*, and Fuzz* functions. What do you think? Would you be open to adding such an option?

@fatih
Copy link
Owner

fatih commented Mar 5, 2022

Yeah I'm fine with it. Feel free open a PR.

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

No branches or pull requests

2 participants