Skip to content

Redundant Non-Negative Checks for Unsigned Integers #11

@gbrigandi

Description

@gbrigandi

Traverse fails to detect redundant comparisons where unsigned integers are checked to be greater than or equal to zero. Since uint types are inherently non-negative, conditions like value >= 0 are always true and indicate logical errors or unnecessary code.
Traverse should flag >= 0 comparisons on unsigned integer types as these checks are redundant and may indicate developer confusion about data types or missing validation logic that should check for different conditions.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions