]> khamidou — GitHub mirrors - arcanist.git/commit
Improve the "invalid parent scope" linter rule
authorJoshua Spence <josh@joshuaspence.com>
Sun, 17 May 2015 21:47:19 +0000 (07:47 +1000)
committerJoshua Spence <josh@joshuaspence.com>
Sun, 17 May 2015 21:47:19 +0000 (07:47 +1000)
commit1df248cc2d53ecfc0dae1e2ae58b4e56f7a4acdc
tree5b35c6f569795f7781e49b26a80528e74d4a94f9
parentf9cefb7e2d9d8e0d898b1570870de6df1360592c
Improve the "invalid parent scope" linter rule

Summary: This linter rule was introduced in D12420, but fails to handle a specific edge case.

Test Plan: Added test case.

Reviewers: #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: Korvin, epriestley

Differential Revision: https://secure.phabricator.com/D12853
src/lint/linter/ArcanistXHPASTLinter.php
src/lint/linter/__tests__/xhpast/no-parent-scope.lint-test