-
Notifications
You must be signed in to change notification settings - Fork 4.2k
No IDE0060 for unused parameter in partial method implementation #63530
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -217,6 +217,7 @@ parameter.ContainingSymbol is not IMethodSymbol method || | |
| method.IsVirtual || | ||
| method.IsOverride || | ||
| method.PartialImplementationPart != null || | ||
| method.PartialDefinitionPart != null || | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't know, but I feel the check is too strong.
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Given that
I believe it's pointless to run the IDE0060 rule on the implementation (i.e. when After all, if any of the parameters are unused by the implementation, what can the developer do? They probably have no control over the autogenerated definition and the implementation's signature must match the definition's...
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think we should specifically check for generated code. This check can probably be easier when #63447 is merged
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I didn't know about this upcoming
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I am not sure if |
||
| !method.ExplicitOrImplicitInterfaceImplementations().IsEmpty || | ||
| method.IsAccessor() || | ||
| method.IsAnonymousFunction() || | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.