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
I have a function that runs a block of tests and I use this function in a couple places, so I have it encapsulated as a first-class function rather than inlined, as is typical. The function is a valid callback meeting the criteria specified by the rule:
Please re-read my first sentence; it is something I use in more than one place. But that question is moot; the way I wrote that code is valid and the plugin should not claim it is invalid.
I did read it. There is just not scenario where that would make sense. It is not at all wrong for the plugin to complain about code that is poorly written. That's a hill I will die on. There are tons of scenarios that do not make sense that are "technically" valid, it does not mean I'm going to support them in the plugin.
I have a function that runs a block of tests and I use this function in a couple places, so I have it encapsulated as a first-class function rather than inlined, as is typical. The function is a valid callback meeting the criteria specified by the rule:
Minimal test case:
The
describe
line is flagged as a violation because the function is not inlined. Would be nice if the plugin could recognize this case.The text was updated successfully, but these errors were encountered: