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
Unknown Object (File)
Fri, Jan 24, 4:32 AM
Unknown Object (File)
Fri, Jan 24, 4:31 AM
Unknown Object (File)
Fri, Jan 24, 4:31 AM
Unknown Object (File)
Fri, Jan 24, 4:31 AM
Unknown Object (File)
Fri, Jan 24, 4:31 AM
Unknown Object (File)
Wed, Jan 22, 9:41 PM
Unknown Object (File)
Wed, Jan 22, 1:08 PM
Unknown Object (File)
Sat, Jan 11, 5:32 PM
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.