You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yes, but this will exclude all rules of the linter, not just this one.
Probably it's possible to except using text: instead of linters:, but it feels like a workaround: error message text to match may change in future versions, linter will still spend time applying this rule to non-tests, etc.
Your feature request related to a problem? Please describe.
Using time.Sleep in tests is a mistake in most of cases.
Describe the solution you'd like.
Linter should detect time.Sleep in tests.
Describe alternatives you've considered.
TBH as golangci-link contains nearly hundred of linters it's hard to say is some of existing ones can be configured to do this.
Additional context.
https://xeiaso.net/blog/nosleep
The text was updated successfully, but these errors were encountered: