]> khamidou — GitHub mirrors - arcanist.git/commit
Add a linter rule for nested namespaces
authorJoshua Spence <josh@freelancer.com>
Thu, 19 Nov 2015 08:31:45 +0000 (19:31 +1100)
committerJoshua Spence <josh@freelancer.com>
Thu, 19 Nov 2015 08:31:45 +0000 (19:31 +1100)
commit149e7895fbd5e35f804e6f0b77d7788a988bc2f9
treeb0c2b66b319c7f574f2a3fe714bb0597cc73df63
parent7386afc953e0fd22b674486212a01e49ad92931d
Add a linter rule for nested namespaces

Summary: Namespace declarations cannot be nested, see https://3v4l.org/kRUNj.

Test Plan: Added unit tests

Reviewers: #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: Korvin

Differential Revision: https://secure.phabricator.com/D14513
src/__phutil_library_map__.php
src/lint/linter/xhpast/rules/ArcanistNestedNamespacesXHPASTLinterRule.php [new file with mode: 0644]
src/lint/linter/xhpast/rules/__tests__/ArcanistNestedNamespacesXHPASTLinterRuleTestCase.php [new file with mode: 0644]
src/lint/linter/xhpast/rules/__tests__/nested-namespaces/nested.lint-test [new file with mode: 0644]