Description
Currently only constructor declarations are checked. A logger type mismatch in a primary constructor is not yet recognized.
Reproducer
class A(ILogger<C> logger);
// ^^^ no diagnostic here despite the mismatch
class B
{
public B(ILogger<C> logger)
// ^^^ S6672: Update this logger to use its enclosing type.
{
}
}
class C;
Product and Version
SonarQube for Visual Studio 9.4.0.16052