]> khamidou — GitHub mirrors - arcanist.git/commit
Improve autofixing of double quotes in XHPAST linter.
authorJoshua Spence <josh@joshuaspence.com>
Mon, 19 May 2014 14:49:51 +0000 (07:49 -0700)
committerepriestley <git@epriestley.com>
Mon, 19 May 2014 14:49:51 +0000 (07:49 -0700)
commit1b0ab48f15d434956708000ae1ddaa809977098a
treec51ef5ff0933ba832fd18ac88b826e94e3f2dfef
parentb251615716b39d61a2d676eed36f2ec91bcf1beb
Improve autofixing of double quotes in XHPAST linter.

Summary: The XHPAST double quotes rule autofixes strings which use double quotes where single quotes would suffice. In the case in which the double-quoted string contained an escaped double quote, the autofix string can be improved by removing the escape symbol.

Test Plan: Modified existing unit tests to cover this case.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: epriestley, Korvin

Differential Revision: https://secure.phabricator.com/D9196
src/lint/linter/ArcanistXHPASTLinter.php
src/lint/linter/__tests__/xhpast/double-quote.lint-test