Page MenuHomePhabricator

Improve error message from ArcanistXHPASTLinter::LINT_FORMATTED_STRING
ClosedPublic

Authored by joshuaspence on May 15 2015, 11:52 PM.
Tags
None
Referenced Files
F18873663: D12871.diff
Wed, Nov 5, 10:50 AM
F18839271: D12871.diff
Mon, Oct 27, 3:22 PM
F18783927: D12871.id30958.diff
Mon, Oct 13, 10:48 AM
F17914292: D12871.id30993.diff
Jul 29 2025, 7:09 PM
Unknown Object (File)
May 9 2025, 2:31 PM
Unknown Object (File)
May 5 2025, 7:02 PM
Unknown Object (File)
Apr 28 2025, 2:15 AM
Unknown Object (File)
Apr 28 2025, 2:15 AM
Subscribers

Details

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.

Diff Detail

Repository
rARC Arcanist
Branch
master
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 6024
Build 6044: [Placeholder Plan] Wait for 30 Seconds

Event Timeline

joshuaspence retitled this revision from to Improve error message from ArcanistXHPASTLinter::LINT_FORMATTED_STRING.
joshuaspence updated this object.
joshuaspence edited the test plan for this revision. (Show Details)
joshuaspence added a reviewer: epriestley.
epriestley edited edge metadata.
This revision is now accepted and ready to land.May 17 2015, 12:57 PM
This revision was automatically updated to reflect the committed changes.