
* Modify rule S3416: add C# and VB.NET * Add logging frameworks to the list of allowed frameworks * Reverse adding logging frameworks * Fix issues from adoc validation * Review 1 * Fix tabbing * Review 2 * Add list of supported frameworks * Missed renames * Add 'logging' tag * Remove VB.NET * Fix a minor typo --------- Co-authored-by: Gregory Paidis <gregory.paidis@sonarsource.com> Co-authored-by: Gregory Paidis <115458417+gregory-paidis-sonarsource@users.noreply.github.com>
14 lines
308 B
Plaintext
14 lines
308 B
Plaintext
[source,csharp]
|
|
----
|
|
class EnclosingType
|
|
{
|
|
private readonly ILogger logger;
|
|
|
|
public EnclosingType(ILoggerFactory loggerFactory)
|
|
{
|
|
logger = loggerFactory.CreateLogger<AnotherType>(); // Noncompliant
|
|
logger = loggerFactory.CreateLogger<EnclosingType>(); // Compliant
|
|
}
|
|
}
|
|
----
|