Skip to content

RULE-10-1: Handle missing unary operations #691

Closed
@lcartey

Description

@lcartey

Affected rules

  • RULE-10-1

Description

We are missing unary operations:

  • The ~ complement operator is not currently supported.
  • ! operator is reporting the incorrect essential type - it should be boolean.

Example

~1; // NON_COMPLIANT[FALSE_NEGATIVE] - the ~ operator is not currently supported
bool x = false;
!x && true; // COMPLIANT[FALSE_POSITIVE] - !x should have essential type bool and so should be permitted

Metadata

Metadata

Assignees

Labels

Difficulty-LowA false positive or false negative report which is expected to take <1 day effort to addressImpact-Mediumfalse positive/false negativeAn issue related to observed false positives or false negatives.

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions