17 lines
509 B
Plaintext
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[]
|