faillint
faillint copied to clipboard
failint: add ability to lint only tests
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 https://github.com/fatih/faillint/issues/30.
@fatih kind ping 🤗
@fatih ping
@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? https://github.com/fatih/faillint/pull/43
Closing this in favor of https://github.com/fatih/faillint/pull/43