]> khamidou — GitHub mirrors - arcanist.git/commit
Allow closing tags in files containing HTML
authorJoshua Spence <josh@joshuaspence.com>
Wed, 5 Aug 2015 20:56:26 +0000 (06:56 +1000)
committerJoshua Spence <josh@joshuaspence.com>
Wed, 5 Aug 2015 20:56:26 +0000 (06:56 +1000)
commit402899a9c32d6079a913546cadf0ea54f127e97b
tree609eefcbf293fddb80c7bd38583cae6b797397a4
parentfb5d5b86fadf909355d26741a54337a1e1ccb8ae
Allow closing tags in files containing HTML

Summary: Ref T8742. PHP files which contain inline HTML should be allowed to use PHP closing tags (`?>`). This is in accordance with [[https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md | PSR-2 guidelines]].

Test Plan: Updated unit tests.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: Korvin

Maniphest Tasks: T8742

Differential Revision: https://secure.phabricator.com/D13794
src/lint/linter/__tests__/xhpast/embedded-tags.lint-test
src/lint/linter/__tests__/xhpast/php-tags-bad.lint-test
src/lint/linter/xhpast/rules/ArcanistPHPCloseTagXHPASTLinterRule.php