Closed
Description
Some rules are missing constant evaluation, e.g. #58470
How about if we have a test, which iterates over all rule tests, and ensures there is a corresponding constant usage for any of 0
, 1
and -1
?
For example, the following is a test in literal_only_boolean_expressions
if (1 < 0 && true) {} // LINT
The test ensures there is also (which is currently failing
)
if (one < zero && true) {} // LINT
Having the FAILING
feature would ease adding failing tests, to be fixed at a later stage.
Or would it be too aggressive to do it for all the lints?