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
{{ message }}
Repository navigation
SA1313 should not be reported when method implements a interface #3555
SA1313 should not be reported when a given method implements an interface method with parameter names that do not start with a lowercase letter.
For example:
publicinterfaceIDTExtensibility2{// SA1313 is reported here, this is finevoidOnStartupComplete(refArrayCustom);// SA1313 is reported here, this is finevoidOnBeginShutdown(refArrayCustom);}publicclassAddIn:IDTExtensibility2{// SA1313 should not be reported herevoidIDTExtensibility2.OnStartupComplete(refArrayCustom){}// SA1313 should not be reported herepublicvoidOnBeginShutdown(refArrayCustom){}}
@drieseng, can you confirm that the only SA1313 you get inside AddIn is for OnStartupComplete? That is at least the behaviour that I see. So you have a single unexpected SA1313 in your example?
@bjornhellander Indeed, SA1313 is only falsely reported for an explicit interface implementation. For the public method (OnBeginShutdown, in my example) it's already ok.
Activity
Update SA1313 to also allow incorrect names in explicitly implemented…
bjornhellander commentedon Oct 22, 2022
Grabbing this
bjornhellander commentedon Oct 22, 2022
@drieseng, can you confirm that the only SA1313 you get inside AddIn is for OnStartupComplete? That is at least the behaviour that I see. So you have a single unexpected SA1313 in your example?
Update SA1313 to also allow incorrect names in explicitly implemented…
Update SA1313 to also allow incorrect names in explicitly implemented…
Update SA1313 to also allow incorrect names in explicitly implemented…
drieseng commentedon Oct 22, 2022
@bjornhellander Indeed, SA1313 is only falsely reported for an explicit interface implementation. For the public method (
OnBeginShutdown, in my example) it's already ok.Thanks for the PR!