Page MenuHomePhabricator

Use PhutilClassMapQuery
ClosedPublic

Authored by joshuaspence on Jun 25 2015, 12:15 PM.
Tags
None
Referenced Files
F22522608: D13428.id32797.diff
Sun, Sep 20, 7:52 PM
Unknown Object (File)
Sat, Sep 12, 7:18 AM
Unknown Object (File)
Aug 20 2026, 12:40 AM
Unknown Object (File)
Aug 17 2026, 9:50 AM
Unknown Object (File)
Jul 4 2026, 9:53 AM
Unknown Object (File)
Jul 1 2026, 3:03 PM
Unknown Object (File)
Jun 22 2026, 8:10 AM
Unknown Object (File)
Apr 15 2026, 2:08 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.