Page MenuHomePhabricator

Add a linter rule for alias functions
ClosedPublic

Authored by joshuaspence on Apr 15 2015, 1:28 PM.
Tags
None
Referenced Files
F13245442: D12422.diff
Thu, May 23, 6:01 AM
F13226963: D12422.diff
Mon, May 20, 12:26 AM
F13222141: D12422.diff
Sun, May 19, 3:23 AM
F13219328: D12422.id.diff
Sat, May 18, 5:26 PM
F13204710: D12422.diff
Wed, May 15, 12:52 AM
F13187963: D12422.diff
Sat, May 11, 4:52 AM
Unknown Object (File)
Tue, May 7, 8:06 AM
Unknown Object (File)
Fri, May 3, 7:37 AM
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
Branch
master
Lint
Lint Passed
Unit
Tests Passed
Build Status
Buildable 5970
Build 5990: [Placeholder Plan] Wait for 30 Seconds

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().