Skip to content
vetkitChecksChangelogDocumentation

vetkit.go.quality.identical-operands

Both operands are identical, so the expression is constant. This is almost always a copy-paste mistake.

Last updated:

Suite: Code quality

go

Both operands are identical, so the expression is constant. This is almost always a copy-paste mistake.

Category: QUALITY · Engine rule severity: WARNING

How to fix it

Compare against the value that was intended.

Source: packages/engine/rules/quality/go.yml.

Generated from shipped rule definitions at build time. Matching is a review signal, not proof of exploitability. “generic” denotes text matching, not complete language or framework coverage. Runtime configuration and available tools affect whether a rule runs.