Home GnuPG

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

Unpublished Commit ยท Learn More

Repository Importing: This repository is still importing.

Description

Add a linter rule to detect duplicate case statements

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

Test Plan: Added test cases.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: Korvin, epriestley

Maniphest Tasks: T6843

Differential Revision: https://secure.phabricator.com/D11171

Details

Provenance
Joshua Spence <josh@joshuaspence.com>Authored on Jan 4 2015, 6:49 AM
Parents
rARC4e3df805844c: Move `LINT_NO_COMMIT` from `ArcanistTextLinter` to a new linter
Branches
Unknown
Tags
Unknown

Event Timeline

Joshua Spence <josh@joshuaspence.com> committed rARCb31e9c0cfee0: Add a linter rule to detect duplicate `case` statements (authored by Joshua Spence <josh@joshuaspence.com>).Jan 4 2015, 8:08 AM