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

10 lines
210 B
YAML

rules:
- id: self-equals
patterns:
- pattern-either:
- pattern: $X == $X
- pattern: $X != $X
message: "Comparing with self"
languages: [go]
severity: ERROR