Page MenuHomePhabricator

Write a linter rule to detect duplicate case statements
Closed, ResolvedPublic

Description

We should be able to warn about this:

switch ($x) {
  case 'A':
    // do something
  case 'A':
    // oops
}

Revisions and Commits

Restricted Differential Revision

Event Timeline

joshuaspence raised the priority of this task from to Needs Triage.
joshuaspence updated the task description. (Show Details)
joshuaspence added a project: Lint.
joshuaspence added a subscriber: joshuaspence.
joshuaspence added a revision: Restricted Differential Revision.Jan 3 2015, 4:11 AM
joshuaspence added a commit: Restricted Diffusion Commit.

Closed by commit rARCb31e9c0cfee0.