rspec/rules/S1521/rule.adoc

15 lines
225 B
Plaintext
Raw Normal View History

== Why is this an issue?
Condition operators can quickly become hard to be read.
=== Noncompliant code example
2022-02-04 17:28:24 +01:00
[source,text]
----
function sayHello() {
var a = (a === 'A') ? 'is A' : 'is not A'; // Noncompliant
}
----