-
Notifications
You must be signed in to change notification settings - Fork 238
Open
Labels
Rule IdeaIdea for a rule that has NOT been specified.Idea for a rule that has NOT been specified.
Description
interface IInterface
{
void InterfaceMethod();
}
class Base
{
protected virtual void BaseMethod() {}
}
class Sample : Base, IInterface
{
public async void InterfaceMethod() {} // Noncompliant
protected override async void BaseMethod() {} // Noncompliant
protected virtual async void VirtualMethod() {} // Noncompliant
async void OtherMethod() {} // Compliant: covered by S3168
}This rule complements S3168, which ignores methods that implement an interface, override a base method, or are virtual. Having this functionality as a separate rule allows users to tailor their analysis to their needs.
Corniel
Metadata
Metadata
Assignees
Labels
Rule IdeaIdea for a rule that has NOT been specified.Idea for a rule that has NOT been specified.