mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-11-10 00:42:40 +01:00
Fix incorrect variable for linter standards
Summary: It is currently not possible to apply multiple linter standards because `$value` was used instead of `$standard`. Test Plan: Was able to apply multiple linter standards. Reviewers: epriestley, #blessed_reviewers Reviewed By: epriestley, #blessed_reviewers Subscribers: eadler, thaiphv, Korvin Differential Revision: https://secure.phabricator.com/D15212
This commit is contained in:
parent
9b07d1c480
commit
ea6fc77892
1 changed files with 4 additions and 2 deletions
|
@ -574,8 +574,10 @@ abstract class ArcanistLinter extends Phobject {
|
|||
case 'standard':
|
||||
$standards = (array)$value;
|
||||
|
||||
foreach ($standards as $standard) {
|
||||
$standard = ArcanistLinterStandard::getStandard($value, $this);
|
||||
foreach ($standards as $standard_name) {
|
||||
$standard = ArcanistLinterStandard::getStandard(
|
||||
$standard_name,
|
||||
$this);
|
||||
|
||||
foreach ($standard->getLinterConfiguration() as $k => $v) {
|
||||
$this->setLinterConfigurationValue($k, $v);
|
||||
|
|
Loading…
Reference in a new issue