You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
andrei-epure-sonarsource
changed the title
S1186: also inspect empty set and init
S1186: also inspect empty set and init and empty local functions
Nov 16, 2020
Rule S1186 (EmptyMethod S1186) currently looks only at method bodies, and doesn't raise when seeing empty
set
orinit
(for C# 9).It would make sense to raise on
set
andinit
as these are actuallyvoid
methods as well.Remark:
add
andremove
for events are bothvoid
, and empty method detection can be done for those too. A dedicated issue exists: #8599The text was updated successfully, but these errors were encountered: