A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/SonarSource/sonar-dotnet/issues/7629 below:

Empty method comes from interface · Issue #7629 · SonarSource/sonar-dotnet · GitHub

Description

S1186 is reported for empty methods that implement interface

Repro steps
interface IFilter
{
    void OnEnter();

    void OnExit();
}

class Filter : IFilter
{
    public void OnEnter() // <- is reported here
    {
    }

    public void OnExit()
    {
        Console.WriteLine("exiting");
    }
}
Expected behavior

No diagnostic is reported

Actual behavior

Diagnostic is reported

Related information

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4