Page MenuHomePhabricator

Add a linter rule for the use of `dirname(__FILE__)`
Needs ReviewPublic

Authored by joshuaspence on Jun 25 2015, 11:39 AM.
Tags
None
Referenced Files
F15471953: D13426.id32509.diff
Sat, Apr 5, 9:58 AM
F15454752: D13426.id32509.diff
Sat, Mar 29, 8:11 PM
F15445200: D13426.id33583.diff
Thu, Mar 27, 12:49 PM
F15445133: D13426.id.diff
Thu, Mar 27, 12:31 PM
F15438874: D13426.diff
Wed, Mar 26, 4:14 AM
F15432273: D13426.id.diff
Mon, Mar 24, 5:12 PM
F15429340: D13426.id33583.diff
Mon, Mar 24, 1:44 AM
F15409257: D13426.id32509.diff
Wed, Mar 19, 3:50 AM
Subscribers

Details

Reviewers
epriestley
Group Reviewers
Blessed Reviewers
Summary

In PHP 5.4 and above, __DIR__ should be used instead of dirname(__FILE__). Add a linter rule to enforce this.

Test Plan

Added unit tests.

Diff Detail

Repository
rARC Arcanist
Branch
master
Lint
Lint Passed
Unit
Test Failures
Build Status
Buildable 7653
Build 8344: [Placeholder Plan] Wait for 30 Seconds
Build 8343: arc lint + arc unit

Event Timeline

joshuaspence retitled this revision from to Add a linter rule for the use of `dirname(__FILE__)`.
joshuaspence updated this object.
joshuaspence edited the test plan for this revision. (Show Details)
joshuaspence added a reviewer: epriestley.