Checks for over-complicated boolean return statements.

Configuration

{
    "type": "SimplifyBooleanReturn",
    "props": {
        "severity": "ERROR"
    }
}

For example the following code

if (isValid()) {
    return false;
}
else {
    return true;
}

could be written as

return !isValid();