rspec/rules/S1854/csharp/rule.adoc
Alban Auzeill 2c306d110e Fix code block ambiguity with old header style
Ensure blank line before list and clean the one leading space
2020-06-30 17:16:12 +02:00

17 lines
509 B
Plaintext

include::../description.adoc[]
include::../noncompliant.adoc[]
include::../compliant.adoc[]
== Exceptions
No issue is reported when
* the analyzed method body contains <code>try</code> blocks,
* a lambda expression captures the local variables, or
* the variable is unused (case covered by Rule S1481)
* initializations to <code>-1</code>, <code>0</code>, <code>1</code>, <code>null</code>, <code>true</code>, <code>false</code>, <code>""</code> and <code>string.Empty</code>.
include::../see.adoc[]