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
F14653526: D12856.diff
Sat, Jan 11, 5:32 PM
Unknown Object (File)
Fri, Jan 3, 8:32 PM
Unknown Object (File)
Fri, Dec 20, 8:13 PM
Unknown Object (File)
Dec 11 2024, 9:36 PM
Unknown Object (File)
Dec 8 2024, 6:17 AM
Unknown Object (File)
Dec 4 2024, 10:36 AM
Unknown Object (File)
Dec 2 2024, 10:32 AM
Unknown Object (File)
Nov 29 2024, 8:46 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 6056
Build 6076: [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.