Page MenuHomePhabricator

Add a hook method that is called before `ArcanistLinter::getLinterConfigurationOptions`
Needs ReviewPublic

Authored by joshuaspence on Fri, May 24, 4:45 AM.

Details

Reviewers
epriestley
Group Reviewers
Blessed Reviewers
Summary

I am writing a third-party linter which allows different configuration options depending on the value of one specific configuration option. This diff adds a ArcanistLinter::willSetLinterConfiguration hook method that is called before ArcanistLinter::getLinterConfigurationOptions to facilitate this type of functionality.

Test Plan

N/A

Diff Detail

Repository
rARC Arcanist
Branch
lint6
Lint
Lint OK
Unit
Unit Tests OK
Build Status
Buildable 22911
Build 31431: Run Core Tests
Build 31430: arc lint + arc unit

Event Timeline

joshuaspence created this revision.Fri, May 24, 4:45 AM
joshuaspence requested review of this revision.Fri, May 24, 4:45 AM
joshuaspence added inline comments.Sun, May 26, 10:19 PM
src/lint/linter/ArcanistLinter.php
490

Alternative method names:

  • willSetLinterConfigurationOptions
  • willSetLinterConfigurationValues