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
The current prefer-to-have-count rule has a problem where any expect checks that take a variable argument will not check to make sure the value is not originating from a .count call.
For example the following code would not be flagged as an error:
The current code misses this case because we are not dereferencing the last assigned value of filesCount at the moment of verifying the expect argument. The rule should flag the error and return the following as a fix:
The current prefer-to-have-count rule has a problem where any expect checks that take a variable argument will not check to make sure the value is not originating from a .count call.
For example the following code would not be flagged as an error:
The current code misses this case because we are not dereferencing the last assigned value of
filesCount
at the moment of verifying the expect argument. The rule should flag the error and return the following as a fix:The text was updated successfully, but these errors were encountered: