Page MenuHomePhabricator

Use PhutilClassMapQuery
ClosedPublic

Authored by joshuaspence on Jun 25 2015, 12:15 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, May 3, 3:33 PM
Unknown Object (File)
Wed, Apr 10, 11:14 AM
Unknown Object (File)
Apr 6 2024, 1:49 AM
Unknown Object (File)
Mar 31 2024, 7:49 PM
Unknown Object (File)
Mar 25 2024, 2:00 PM
Unknown Object (File)
Feb 9 2024, 3:39 PM
Unknown Object (File)
Jan 28 2024, 5:34 AM
Unknown Object (File)
Dec 29 2023, 5:27 AM
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.