Page MenuHomePhabricator

Use PhutilClassMapQuery
ClosedPublic

Authored by joshuaspence on Jun 25 2015, 12:15 PM.
Tags
None
Referenced Files
F19524587: D13428.diff
Sun, Jan 18, 2:35 AM
F19150608: D13428.id.diff
Dec 10 2025, 9:27 PM
F18901913: D13428.id32797.diff
Nov 7 2025, 11:13 PM
F18777971: D13428.id32511.diff
Oct 11 2025, 6:57 AM
F18385012: D13428.id.diff
Aug 29 2025, 12:46 AM
F18383861: D13428.id32511.diff
Aug 28 2025, 11:30 PM
F18381712: D13428.id32511.diff
Aug 28 2025, 8:18 PM
F18381632: D13428.id.diff
Aug 28 2025, 8:11 PM
Subscribers

Details

Summary

Use PhutilClassMapQuery where appropriate.

Test Plan

arc unit

Diff Detail

Repository
rARC Arcanist
Branch
master
Lint
Lint Passed
Unit
Test Failures
Build Status
Buildable 6995
Build 7046: [Placeholder Plan] Wait for 30 Seconds
Build 7045: arc lint + arc unit

Unit TestsFailed

TimeTest
1,936 msArcanistJSHintLinterTestCase::testLinter
1,168 msArcanistCSSLintLinterTestCase::testLinter
235 msArcanistCSSLintLinterTestCase::testVersion
316 msArcanistChmodLinterTestCase::testLinter
799 msArcanistClosureLinterTestCase::testLinter
View Full Test Results (1 Failed · 48 Passed · 9 Skipped)

Event Timeline

joshuaspence retitled this revision from to Use PhutilClassMapQuery.
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.Jun 25 2015, 12:16 PM

Oh, there's also a bunch of additional places where it maybe makes sense to use PhutilClassMapQuery instead of PhutilSymbolLoader just because of the cacheing... what do you thnk?

For example, in ArcanistConfigurationDrivenLintEngine we do this:

$linters = id(new PhutilSymbolLoader())
  ->setAncestorClass('ArcanistLinter')
  ->loadObjects();

I think it's probably good to use it everywhere -- the caching probably isn't too important, but I think it's more consistent and makes intent more clear.

This revision was automatically updated to reflect the committed changes.