Page MenuHomePhabricator

Add a linter rule for the instanceof operator
ClosedPublic

Authored by joshuaspence on May 15 2015, 10:15 AM.
Tags
None
Referenced Files
F15402853: D12856.diff
Tue, Mar 18, 12:40 AM
F15394415: D12856.id31014.diff
Sat, Mar 15, 11:51 PM
F15392752: D12856.id.diff
Sat, Mar 15, 5:28 PM
F15392663: D12856.id30926.diff
Sat, Mar 15, 4:43 PM
F15391812: D12856.id31015.diff
Sat, Mar 15, 11:47 AM
F15390867: D12856.diff
Sat, Mar 15, 7:07 AM
F15378907: D12856.id31015.diff
Thu, Mar 13, 5:37 PM
F15293866: D12856.diff
Wed, Mar 5, 5:17 AM
Subscribers

Details

Summary

The instanceof operator expects the first argument to be an object instance. See http://www.phpwtf.org/instanceof-smart.

Test Plan

Added test case

Diff Detail

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

Event Timeline

joshuaspence retitled this revision from to Add a linter rule for the instanceof operator.
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:58 PM
This revision was automatically updated to reflect the committed changes.