Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

New Rule: no inversion of boolean checks #44

Copy link
Copy link
Closed
@silviomarghitola

Description

@silviomarghitola
Issue body actions

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;

Metadata

Metadata

Assignees

Labels

enhancementNew feature or requestNew feature or request

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    Morty Proxy This is a proxified and sanitized view of the page, visit original site.