Split "parameter is not used" issue: one for named method and another for unnamed delegates Follow
The standard case: delegate for an event
There are plenty of those event handlers in any project. As soon as I type "+=", ReSharper kindly creates a delegate for me. As usual, the sender parameter is not used. ReSharper starts complaining about it. It does annoy. If I change the severity to let's say suggestion, it also impacts named methods. But for named methods, this warning is very crucial, I do not want to suppress it. So, my question is if it possible to split the warning for twos: for unnamed delegates (which is obviously event handlers) and for named methods
Another suggestion is to analyze whether the method is an event handler and if it is, then to use another inspection, something like "parameter is not used in event handler".
Please sign in to leave a comment.
Hello,
I've filed a corresponding feature request - https://youtrack.jetbrains.com/issue/RSRP-486259.
Please let me know if you have any more questions.
Thank you.