rspec/rules/S3358/csharp/noncompliant.adoc

8 lines
159 B
Plaintext
Raw Normal View History

[source,csharp]
----
public string GetReadableStatus(Job j)
{
return j.IsRunning ? "Running" : j.HasErrors ? "Failed" : "Succeeded"; // Noncompliant
}
----