Skip to content

Analyzer needs to warn on virtual methods #1985

@tlakollo

Description

@tlakollo

Currently, the RUC analyzer and RAF analyzer don't check for other virtual calls, for example:

// On one file
public virtual void VirtualMethod() => null

// On some other file
[RequiresAttributeFiles]
public override void VirtualMethod(){ 
   SomeCode
}

public void M1(){
    VirtualMethod(); //This doesnt warn on the analyzer
}

The behavior should be to warn on all implementations of the method

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions