Query module CompareIdenticalValues

name
Comparison of identical values
description
When the same variable occurs on both sides of a comparison operator, the behavior is always constant, and probably not what it was intended to be.
kind
problem
problem.severity
warning
precision
high
id
cs/comparison-of-identical-expressions
tags
reliability

Imports

Assertions

Provides classes for assertions.

ComparisonTest

Provides classes for capturing various ways of performing comparison tests.

Constants

Provides logic for determining constant expressions.

csharp

The default C# QL library.

Predicates