lint/dead-code/no-redundant-type-check
In the dead-code set. Unsafe fix: it can change behaviour.
What it does
Remove is_<type>() check that can never fail on already known type
Configuration
[lint.rules]
"dead-code/no-redundant-type-check" = "error"
To skip it in some files or lines, add an override or an ignore comment.
Replaces
RemoveRedundantTypeCheck(rector)