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
Hmm.
Usually, ruleguard is used from the golangci-lint context.
If it can skip test directories, then you should be able to skip warnings for tests with ease.
As for a standalone ruleguard, I don't have a good solution out of my head. Is there a convention that other linters follow?
@peakle that should work, yes.
This has a benefit that ruleguard may at some point use this filter information to avoid even running the rules on a file that would never match the filter.
We don't do this kind of optimization yet, but it's definitely possible.
Any m.File() related filters are a subject for this optimization.
The self-explanatory question, just need to know if there is a way to skip tests. Was not able to find them in the docs.
Thanks for the help.
The text was updated successfully, but these errors were encountered: