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

failint: add ability to lint only tests #39

Closed

Conversation

GiedriusS
Copy link

@GiedriusS GiedriusS commented May 29, 2023

Add the ability to lint only testing functions. This is useful to prevent hardcoded sleeps in tests leading to flaky tests.

I have never worked with the AST package in Go so this requires extra carefulness.

Solves #30.

@GiedriusS GiedriusS force-pushed the add_ability_to_only_lint_tests branch 2 times, most recently from bb84131 to 3a3632a Compare May 29, 2023 11:22
Add the ability to lint only testing functions. This is useful to
prevent hardcoded sleeps in tests leading to flaky tests.

I have never worked with the AST package in Go so this requires extra
carefulness.

Signed-off-by: Giedrius Statkevičius <[email protected]>
@GiedriusS GiedriusS force-pushed the add_ability_to_only_lint_tests branch from 3a3632a to 20c90aa Compare May 29, 2023 11:28
@GiedriusS
Copy link
Author

@fatih kind ping 🤗

@GiedriusS
Copy link
Author

@fatih ping

@fatih fatih mentioned this pull request Apr 3, 2024
@fatih
Copy link
Owner

fatih commented Apr 3, 2024

@GiedriusS thank you. I opened a new PR that does it slightly different. You don't need to traverse the AST, hence it's better that way. Could you try it out? #43

@fatih
Copy link
Owner

fatih commented Apr 16, 2024

Closing this in favor of #43

@fatih fatih closed this Apr 16, 2024
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 this pull request may close these issues.

4 participants