27bb03bbc0
* adding copyright header * fix fmt and a test
13 lines
278 B
YAML
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
|