]> khamidou — GitHub mirrors - arcanist.git/commit
Lint rule for duplicate keys in array literals
authorLovro Puzar <lovro.puzar@gmail.com>
Wed, 25 May 2011 19:24:25 +0000 (12:24 -0700)
committerLovro Puzar <lovro.puzar@gmail.com>
Wed, 25 May 2011 23:26:33 +0000 (16:26 -0700)
commit4b041b8f84311bcceb9ec3777bab62e10ddb9012
tree34094db1bb326c410355d44482893ec74cd056be
parentd762311a9de9ae331949743e7b37fc920b7c6dff
Lint rule for duplicate keys in array literals

Summary:
Raise an error if an array is initialized with the same key present more than
once.

Test Plan:
bin/arc unit
Also added some duplicates to ArcanistXHPASTLinter.php and verified the output
of bin/arc lint.

Reviewed By: epriestley
Reviewers: jungejason, epriestley, aran
CC: aran, epriestley
Revert Plan:
Tags:

Differential Revision: 346
src/lint/linter/xhpast/ArcanistXHPASTLinter.php
src/lint/linter/xhpast/__tests__/data/duplicate-key-in-array.lint-test [new file with mode: 0644]