rspec/rules/S3358/common/noncompliant.adoc

7 lines
161 B
Plaintext
Raw Normal View History

[source,java]
----
public String getReadableStatus(Job j) {
return j.isRunning() ? "Running" : j.hasErrors() ? "Failed" : "Succeeded"; // Noncompliant
}
----