RC_REF_COMPARISON - default suspicious types #2532
yuliyasokh
started this conversation in
General
Replies: 2 comments
-
Enums would need to be an exception. Comparing them with |
Beta Was this translation helpful? Give feedback.
0 replies
-
Try to run this proposal on few projects of reasonable size and check false positives rate compared to real issues found. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello All,
While investigating #2297 I found there's pre-defined list of classes DEFAULT_SUSPICIOUS_SET that are suspicious if compared by reference:
`
What do you think about removing this list and fire a bug if any non primitive is compared using == operator?
Beta Was this translation helpful? Give feedback.
All reactions