Open nrankin18 opened 2 months ago
Hello @nrankin18,
Thank you for reporting this issue; I confirm this to be a false positive.
The issue is due to the usage of implicit object creation new()
.
When using explicit object creation, the issue does not raise.
I will add it to our backlog to fix it.
Have a nice day!
Description
Rule S4144 is raised when two methods have identical bodies but are not identical due to different return types.
Repro steps
Expected behavior
S4144 should not be raised since the methods are different (one returns Foo, the other Bar).
Actual behavior
S4144 is raised.
Known workarounds
Inhibit S4144
Related information