vetkit.js.quality.identical-operands
Both operands are identical, so the expression is constant or redundant. This is almost always a copy-paste mistake.
Last updated:
Suite: Code quality
javascript, typescript
Both operands are identical, so the expression is constant or redundant. 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.
References
Source: packages/engine/rules/quality/javascript.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.