Checks for over-complicated boolean return statements.
{ "type": "SimplifyBooleanReturn", "props": { "severity": "ERROR" } }
For example the following code
if (isValid()) { return false; } else { return true; }
could be written as
return !isValid();