]> khamidou — GitHub mirrors - arcanist.git/commit
Add a linter rule for the instanceof operator
authorJoshua Spence <josh@joshuaspence.com>
Mon, 18 May 2015 08:00:08 +0000 (18:00 +1000)
committerJoshua Spence <josh@joshuaspence.com>
Mon, 18 May 2015 08:02:51 +0000 (18:02 +1000)
commit4bb2eecdaf425824051f13947c10a3680a06c19b
tree4154af6d7c4cf9a8589033bc24b78232cbc5153b
parent0c9a03771961be79d09e566051a5a594866760d9
Add a linter rule for the instanceof operator

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

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: Korvin, epriestley

Differential Revision: https://secure.phabricator.com/D12856
src/lint/linter/ArcanistXHPASTLinter.php
src/lint/linter/__tests__/xhpast/instanceof-operator.lint-test [new file with mode: 0644]