Rule S4023 is violated if an interface implements another interface, providing generic type parameters, without declaring members of its own.
Repro stepspublic interface IEndpointHandler<in TArgument, TResult> { Task<TResult> InvokeAsync(TArgument argument, CancellationToken cancellationToken); } // FP: S4023 public interface ILoggingEndpointHandler : IEndpointHandler<LoggingRequest, LoggingResponse> { }Expected behavior
No warning, because ILoggingEndpointHandler
is not a marker interface.
Warning S4023.
Known workarounds Related informationRetroSearch 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