Query module DuplicateSwitchCase

name
Duplicate switch case
description
If two cases in a switch statement have the same label, the second case will never be executed.
kind
problem
problem.severity
warning
id
js/duplicate-switch-case
tags
maintainability correctness external/cwe/cwe-561
precision
very-high

Imports

Clones

Provides predicates for detecting pairs of identical AST subtrees.

Classes

DuplicateSwitchCase

A clone detector for finding structurally identical case labels.