Page MenuHomePhabricator

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

Authored by joshuaspence on May 24 2019, 4:45 AM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Dec 2, 11:18 AM
Unknown Object (File)
Tue, Nov 26, 8:06 PM
Unknown Object (File)
Thu, Nov 21, 9:49 PM
Unknown Object (File)
Sun, Nov 17, 11:35 PM
Unknown Object (File)
Thu, Nov 14, 6:54 AM
Unknown Object (File)
Sun, Nov 10, 2:07 AM
Unknown Object (File)
Wed, Nov 6, 1:13 PM
Unknown Object (File)
Mon, Nov 4, 10:44 AM
Subscribers

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 Passed
Unit
Tests Passed
Build Status
Buildable 22911
Build 31431: Run Core Tests
Build 31430: arc lint + arc unit

Event Timeline

src/lint/linter/ArcanistLinter.php
490

Alternative method names:

  • willSetLinterConfigurationOptions
  • willSetLinterConfigurationValues