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
F13215198: D12856.diff
Fri, May 17, 3:43 PM
F13214376: D12856.id30926.diff
Fri, May 17, 10:10 AM
F13188523: D12856.diff
Sat, May 11, 5:19 AM
Unknown Object (File)
Tue, May 7, 8:33 AM
Unknown Object (File)
Fri, May 3, 8:33 AM
Unknown Object (File)
Thu, Apr 25, 2:24 AM
Unknown Object (File)
Apr 6 2024, 3:26 AM
Unknown Object (File)
Apr 3 2024, 1:30 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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.