template.eqeq-is-bad

profile photo of semgrepsemgrep
Author
unknown
Download Count*

$X == $X is a useless equality check

Run Locally

Run in CI

Defintion

rules:
  - id: eqeq-is-bad
    pattern: $X == $X
    message: $X == $X is a useless equality check
    languages:
      - python
    severity: ERROR
    metadata:
      license: Commons Clause License Condition v1.0[LGPL-2.1-only]