Page MenuHomePhabricator

Add a linter rule for alias functions
ClosedPublic

Authored by joshuaspence on Apr 15 2015, 1:28 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Apr 25, 1:45 AM
Unknown Object (File)
Wed, Apr 17, 2:52 PM
Unknown Object (File)
Mon, Apr 1, 9:05 AM
Unknown Object (File)
Mar 10 2024, 8:54 PM
Unknown Object (File)
Feb 20 2024, 11:12 PM
Unknown Object (File)
Feb 9 2024, 5:34 PM
Unknown Object (File)
Dec 19 2023, 12:37 PM
Unknown Object (File)
Dec 18 2023, 9:11 PM
Subscribers

Details

Summary

Ref T7409. Adds ArcanistXHPASTLinter::LINT_ALIAS_FUNCTION for linting the use of alias funtions. Based on Generic_Sniffs_PHP_ForbiddenFunctionsSniff. See list of function aliases.

Test Plan

Added unit tests.

Diff Detail

Repository
rARC Arcanist
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

joshuaspence retitled this revision from to Add a linter rule for alias functions.
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.Apr 15 2015, 1:29 PM
joshuaspence edited edge metadata.

Comprehensive list of aliases

This revision was automatically updated to reflect the committed changes.

Oh, I should've mentioned... I specifically excluded a bunch of aliases from the Ming extension because they seemed contradictory. For example, according to the documentation add() is an alias for swfmovie_add() and also swfsprite_add().