rspec/rules/S1940/csharp/rule.adoc

24 lines
384 B
Plaintext

include::../description.adoc[]
== Noncompliant Code Example
----
if ( !(a == 2)) { ...} // Noncompliant
bool b = !(i < 10); // Noncompliant
----
== Compliant Solution
----
if (a != 2) { ...}
bool b = (i >= 10);
----
ifdef::env-github,rspecator-view[]
'''
== Comments And Links
(visible only on this page)
include::comments-and-links.adoc[]
endif::env-github,rspecator-view[]