]> khamidou — GitHub mirrors - arcanist.git/commit
Improve error message from ArcanistXHPASTLinter::LINT_FORMATTED_STRING
authorJoshua Spence <josh@joshuaspence.com>
Sun, 17 May 2015 21:48:03 +0000 (07:48 +1000)
committerJoshua Spence <josh@joshuaspence.com>
Sun, 17 May 2015 21:48:03 +0000 (07:48 +1000)
commite3a556af9b26ec746d613ccb32dff86dc542e3d2
treecf4c84f6ba4e647843f08276a1bc9a5e3d5cea74
parent1df248cc2d53ecfc0dae1e2ae58b4e56f7a4acdc
Improve error message from ArcanistXHPASTLinter::LINT_FORMATTED_STRING

Summary: Currently the error message from `ArcanistXHPASTLinter::LINT_FORMATTED_STRING` is slightly wrong, mentioning `xsprintf` instead of the actual `sprintf`-style function which was used. This diff changes the error message to be more correct.

Test Plan: Linted a file containing `sprintf('%s')` and saw a reasonable lint message.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: Korvin, epriestley

Differential Revision: https://secure.phabricator.com/D12871
src/lint/linter/ArcanistXHPASTLinter.php