We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Language Usage / Control Structures / CASE ... Avoid inverting boolean checks
from SonarQube
Boolean checks should not be inverted
It is needlessly complex to invert the result of a boolean comparison. The opposite comparison should be made instead.
Noncompliant Code Example
IF NOT x <> y THEN -- ... END IF;
Compliant Solution
IF x = y THEN -- ... END IF;
The text was updated successfully, but these errors were encountered:
I agree, the compliant solution is much easier to read.
Sorry, something went wrong.
Fix Trivadis#44 - Created rule G-4260: Avoid inverting boolean condit…
16d67a4
…ions.
kibeha
Successfully merging a pull request may close this issue.
Language Usage / Control Structures / CASE ...
Avoid inverting boolean checks
from SonarQube
Boolean checks should not be inverted
It is needlessly complex to invert the result of a boolean comparison. The opposite comparison should be made instead.
Noncompliant Code Example
Compliant Solution
The text was updated successfully, but these errors were encountered: