rspec/rules/S106/csharp/rule.adoc

23 lines
416 B
Plaintext
Raw Normal View History

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 10:16:44 +02:00
* Console Applications
2020-12-23 14:59:06 +01:00
* Calls in methods decorated with ``[Conditional ("DEBUG")]``
* Calls included in DEBUG preprocessor branches (``#if DEBUG``)
2020-06-30 10:16:44 +02:00
include::../see.adoc[]