Usage of non short circuit boolean operators

objectscriptQuality release 
1.0.0
Id 
OS0007
Rule type 
Code Smell
Severity 

Critical

Critical
SQALE characteristic 
  • Reliability
    • Logic
Tags 
performance, reliability
Remediation function 
Constant/issue
Remediation cost 
1h

Non short circuit operators will evaluate all expressions even if one would normally stop the execution if short circuit operators were used instead.

If the use of such an operator is done on purpose, this is very often an indication that one or more checks in the boolean expression have side effects, which is undesirable. Try and refactor the code so as to avoid the use of such operators.