rspec/rules/S121/csharp/rule.adoc

30 lines
491 B
Plaintext
Raw Normal View History

2020-06-30 10:16:44 +02:00
include::../description.adoc[]
== Noncompliant Code Example
----
// the two statements seems to be attached to the if statement, but that is only true for the first one:
if (condition)
ExecuteSomething();
CheckSomething();
----
== Compliant Solution
----
if (condition)
{
ExecuteSomething();
CheckSomething();
}
----
include::../see.adoc[]
ifdef::rspecator-view[]
== Comments And Links
(visible only on this page)
include::../comments-and-links.adoc[]
endif::rspecator-view[]