Differential D20185 Diff 48213 src/applications/differential/config/PhabricatorDifferentialConfigOptions.php
Changeset View
Changeset View
Standalone View
Standalone View
src/applications/differential/config/PhabricatorDifferentialConfigOptions.php
Show First 20 Lines • Show All 74 Lines • ▼ Show 20 Lines | return array( | ||||
$default_fields) | $default_fields) | ||||
->setCustomData( | ->setCustomData( | ||||
id(new DifferentialRevision())->getCustomFieldBaseClass()) | id(new DifferentialRevision())->getCustomFieldBaseClass()) | ||||
->setDescription( | ->setDescription( | ||||
pht( | pht( | ||||
"Select and reorder revision fields.\n\n". | "Select and reorder revision fields.\n\n". | ||||
"NOTE: This feature is under active development and subject ". | "NOTE: This feature is under active development and subject ". | ||||
"to change.")), | "to change.")), | ||||
$this->newOption( | |||||
'differential.whitespace-matters', | |||||
'list<regex>', | |||||
array( | |||||
'/\.py$/', | |||||
'/\.l?hs$/', | |||||
'/\.ya?ml$/', | |||||
)) | |||||
->setDescription( | |||||
pht( | |||||
"List of file regexps where whitespace is meaningful and should ". | |||||
"not use 'ignore-all' by default")), | |||||
$this->newOption('differential.require-test-plan-field', 'bool', true) | $this->newOption('differential.require-test-plan-field', 'bool', true) | ||||
->setBoolOptions( | ->setBoolOptions( | ||||
array( | array( | ||||
pht("Require 'Test Plan' field"), | pht("Require 'Test Plan' field"), | ||||
pht("Make 'Test Plan' field optional"), | pht("Make 'Test Plan' field optional"), | ||||
)) | )) | ||||
->setSummary(pht('Require "Test Plan" field?')) | ->setSummary(pht('Require "Test Plan" field?')) | ||||
->setDescription( | ->setDescription( | ||||
▲ Show 20 Lines • Show All 164 Lines • Show Last 20 Lines |