open-vault/tools/semgrep/self-equals.yml

13 lines
278 B
YAML

# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0
rules:
- id: self-equals
patterns:
- pattern-either:
- pattern: $X == $X
- pattern: $X != $X
message: "Comparing with self"
languages: [go]
severity: ERROR