Page MenuHomePhabricator

Use PhutilClassMapQuery
ClosedPublic

Authored by joshuaspence on Jun 25 2015, 12:15 PM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Nov 26, 6:54 PM
Unknown Object (File)
Fri, Nov 22, 4:46 AM
Unknown Object (File)
Mon, Nov 18, 2:12 AM
Unknown Object (File)
Thu, Nov 14, 9:52 AM
Unknown Object (File)
Sat, Nov 9, 11:27 PM
Unknown Object (File)
Wed, Nov 6, 6:48 AM
Unknown Object (File)
Oct 18 2024, 9:57 AM
Unknown Object (File)
Oct 17 2024, 10:13 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.