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
Great linter. Although I prefer to use it by pinning the variable inside the for loop, before calling t.Parallel() for test cases and the linter detects it as invalid. Maybe you could add a rule for such thing? There are a few cases I can think of:
Pretty much pinning the variable between the for and the t.Parallel() should pass the linting, although some additional checks might be needed such as if the pinned variable has a different name etc.
The text was updated successfully, but these errors were encountered:
Hi there,
Great linter. Although I prefer to use it by pinning the variable inside the for loop, before calling
t.Parallel()
for test cases and the linter detects it as invalid. Maybe you could add a rule for such thing? There are a few cases I can think of:Pinning the variable before t.Run
Pinning the variable inside t.Run before t.Parallel()
Pretty much pinning the variable between the
for
and thet.Parallel()
should pass the linting, although some additional checks might be needed such as if the pinned variable has a different name etc.The text was updated successfully, but these errors were encountered: