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
F15484395: D20555.id49038.diff
Wed, Apr 9, 6:04 PM
F15472266: D20555.id.diff
Sat, Apr 5, 12:16 PM
F15469246: D20555.diff
Fri, Apr 4, 10:56 AM
F15336195: D20555.diff
Mar 8 2025, 6:25 PM
Unknown Object (File)
Feb 9 2025, 10:13 AM
Unknown Object (File)
Feb 2 2025, 8:56 AM
Unknown Object (File)
Jan 25 2025, 11:27 AM
Unknown Object (File)
Jan 21 2025, 2:17 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