Page MenuHomePhabricator

Add a linter rule to detect duplicate `case` statements
ClosedPublic

Authored by joshuaspence on Jan 3 2015, 4:11 AM.

Details

Summary

Fixes T6843. Adds a linter rule to ArcanistXHPASTLinter to detect duplicate case statements within a switch statement.

Test Plan

Added test cases.

Diff Detail

Repository
rARC Arcanist
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

joshuaspence retitled this revision from to Add a linter rule to detect duplicate `case` statements.
joshuaspence updated this object.
joshuaspence edited the test plan for this revision. (Show Details)
joshuaspence added a reviewer: epriestley.
epriestley accepted this revision.Jan 3 2015, 12:27 PM
epriestley edited edge metadata.

Nice!

This revision is now accepted and ready to land.Jan 3 2015, 12:27 PM
This revision was automatically updated to reflect the committed changes.