rspec/rules/S3358/swift/noncompliant.adoc

7 lines
166 B
Plaintext
Raw Permalink Normal View History

[source,swift]
----
func getReadableStatus(job: Job) -> String {
return job.isRunning ? "Running" : job.hasErrors ? "Failed" : "Succeeded"; // Noncompliant
}
----