]> khamidou — GitHub mirrors - arcanist.git/commit
Further improvements to array comma linter rule
authorJoshua Spence <josh@joshuaspence.com>
Tue, 19 May 2015 21:05:34 +0000 (07:05 +1000)
committerJoshua Spence <josh@joshuaspence.com>
Tue, 19 May 2015 21:05:34 +0000 (07:05 +1000)
commit993166fa497e6c19d15acb8c84f4c37749e589c1
tree6277e7750f5ab1970a323aeef2d02b1083053d04
parent25855c4427cc49db63c0f74b29ede2fe0993179d
Further improvements to array comma linter rule

Summary:
Improve the `ArcanistXHPASTLinter::LINT_ARRAY_SEPARATOR` rule to be able to autofix the following code:

```lang=php
array(
  1,
  2,
  3, /* comment */ );
```

Test Plan: Added unit tests.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: epriestley

Differential Revision: https://secure.phabricator.com/D12308
.editorconfig
src/lint/linter/ArcanistXHPASTLinter.php
src/lint/linter/__tests__/xhpast/array-comma.lint-test