Page MenuHomePhabricator

Widen scope of ArcanistLintEngine::buildLinters
Needs ReviewPublic

Authored by Firehed on Oct 16 2014, 8:13 PM.
Tags
None
Referenced Files
F13092234: D10717.diff
Thu, Apr 25, 3:31 AM
Unknown Object (File)
Thu, Apr 18, 9:41 AM
Unknown Object (File)
Mon, Apr 1, 8:17 AM
Unknown Object (File)
Mon, Apr 1, 3:23 AM
Unknown Object (File)
Fri, Mar 29, 9:42 PM
Unknown Object (File)
Feb 17 2024, 1:47 AM
Unknown Object (File)
Feb 16 2024, 6:34 AM
Unknown Object (File)
Feb 3 2024, 1:08 AM

Details

Reviewers
epriestley
Group Reviewers
Blessed Reviewers
Summary

When the arc linters workflow was added, it added a dependency on this method being public. If you create a new lint engine with the scope set to protected (as in the parent) and specify that linter in your .arcconfig file, arc linters would fatal error out with a message like:

Fatal error: Call to protected method Firehed\Arctools\LintEngine::buildLinters() from context 'ArcanistLintersWorkflow' in /Users/firehed/dev/arcanist/src/workflow/ArcanistLintersWorkflow.php on line 44

Call Stack:
    0.0007     332136   1. {main}() /Users/firehed/dev/arcanist/scripts/arcanist.php:0
    0.0354    6939256   2. ArcanistLintersWorkflow->run() /Users/firehed/dev/arcanist/scripts/arcanist.php:338
Test Plan

ran arc linters after the change (and adjusted the scope of my own subclass accordingly) and saw the expected output

Diff Detail

Repository
rARC Arcanist
Branch
master
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 2853
Build 2857: [Placeholder Plan] Wait for 30 Seconds

Event Timeline

Firehed retitled this revision from to Widen scope of ArcanistLintEngine::buildLinters.
Firehed updated this object.
Firehed edited the test plan for this revision. (Show Details)
Firehed added a reviewer: epriestley.