2020-06-30 10:16:44 +02:00
|
|
|
include::../description.adoc[]
|
|
|
|
|
|
|
|
== Noncompliant Code Example
|
|
|
|
|
|
|
|
----
|
|
|
|
private void DoSomething()
|
|
|
|
{
|
|
|
|
// ...
|
|
|
|
Console.WriteLine("so far, so good..."); // Noncompliant
|
|
|
|
// ...
|
|
|
|
}
|
|
|
|
----
|
|
|
|
|
|
|
|
== Exceptions
|
|
|
|
|
|
|
|
The following are ignored by this rule:
|
2020-06-30 14:49:38 +02:00
|
|
|
|
2020-06-30 10:16:44 +02:00
|
|
|
* Console Applications
|
|
|
|
* Calls in methods decorated with <code>[Conditional ("DEBUG")]</code>
|
|
|
|
* Calls included in DEBUG preprocessor branches (<code>#if DEBUG</code>)
|
|
|
|
|
|
|
|
include::../see.adoc[]
|