Rule S2952 Does report in this case, while it shouldn't
publicvoidCleanup()=> fs.Dispose();// FP: We should not report in this case as the disposal is taking place in Dispose() toopublicvoidDispose()=> fs.Dispose();
martin-strecker-sonarsource
changed the title
FN/FP S2952: FNs on some Invocation kinds and FP on additional disposal
Fix S2952 FN/FP: FNs on some Invocation kinds and FP on additional disposal
Feb 21, 2023
martin-strecker-sonarsource
changed the title
Fix S2952 FN/FP: FNs on some Invocation kinds and FP on additional disposal
Fix S2952 FN/FP: FNs on conditional invocation and FPs on additional disposal
Feb 21, 2023
Rule S2952 does not report on these kinds of invocations (from the sample of the rule):
Rule S2952 Does report in this case, while it shouldn't
Originally reported by https://discuss.sonarsource.com/t/11777
The text was updated successfully, but these errors were encountered: