Skip to content
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

RCS1046 is reported in class implementing interface #1118

Closed
hankovich opened this issue Jul 20, 2023 · 0 comments · Fixed by #1283
Closed

RCS1046 is reported in class implementing interface #1118

hankovich opened this issue Jul 20, 2023 · 0 comments · Fixed by #1283

Comments

@hankovich
Copy link

Product and Version Used: latest

Actual Behavior:

interface IStupidInterface // from nuget
{
    Task Foo();
}

public sealed class MyAwesomeImplementation : IStupidInterface // in my solution
{
    public Task Foo() => Task.CompletedTask; // RCS1046 Asynchronous method name should end with 'Async' is reported here
}

Expected Behavior:

Methods overriding methods from the base class either methods that implement interface should be ignored even if their name does not finish with Async

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants