![github-actions[bot]](/assets/img/avatar_default.png)
* Create rule S6669 * First specification * Add backticks * Add compliant and noncompliant comments * Add properties * Use standard RSPEC format for links * Change the scope to "Main" * Fix default format regex * Remove VB.NET * Add logging tag * Fix asciidoc issues --------- Co-authored-by: cristian-ambrosini-sonarsource <cristian-ambrosini-sonarsource@users.noreply.github.com> Co-authored-by: Cristian Ambrosini <cristian.ambrosini@sonarsource.com> Co-authored-by: Gregory Paidis <gregory.paidis@sonarsource.com> Co-authored-by: Gregory Paidis <115458417+gregory-paidis-sonarsource@users.noreply.github.com>
23 lines
545 B
Plaintext
23 lines
545 B
Plaintext
include::../why-dotnet.adoc[]
|
|
|
|
[source,csharp,diff-id=1,diff-type=noncompliant]
|
|
----
|
|
private readonly ILogger myLogger; // Noncompliant
|
|
|
|
public ILogger MyLogger { get; set; } // Noncompliant
|
|
----
|
|
|
|
[source,csharp,diff-id=1,diff-type=compliant]
|
|
----
|
|
private readonly ILogger logger; // Compliant
|
|
|
|
public ILogger Logger { get; set; } // Compliant
|
|
----
|
|
|
|
== Resources
|
|
|
|
=== Documentation
|
|
|
|
* Microsoft Learn - https://learn.microsoft.com/en-us/dotnet/csharp/fundamentals/coding-style/coding-conventions[Coding conventions]
|
|
|
|
include::../rspecator.adoc[] |