mirror of
https://we.phorge.it/source/phorge.git
synced 2024-11-22 06:42:42 +01:00
Fix additional "xprintf()"-class static parameter lint errors
Summary: Ref T13577. After the fix in D21453, lint identifies additional static errors in Phabricator; fix them. Test Plan: Ran `arc lint`; these messages are essentially all very obscure. Subscribers: hach-que, yelirekim, PHID-OPKG-gm6ozazyms6q6i22gyam Maniphest Tasks: T13577 Differential Revision: https://secure.phabricator.com/D21457
This commit is contained in:
parent
7daaaa8463
commit
6e1b5da112
18 changed files with 30 additions and 14 deletions
|
@ -40,7 +40,8 @@ foreach ($lists as $list) {
|
||||||
if (!$username_okay) {
|
if (!$username_okay) {
|
||||||
echo pht(
|
echo pht(
|
||||||
'Failed to migrate mailing list "%s": unable to generate a unique '.
|
'Failed to migrate mailing list "%s": unable to generate a unique '.
|
||||||
'username for it.')."\n";
|
'username for it.',
|
||||||
|
$name)."\n";
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -36,7 +36,8 @@ final class PhabricatorDifferentialRebuildChangesetsWorkflow
|
||||||
throw new PhutilArgumentUsageException(
|
throw new PhutilArgumentUsageException(
|
||||||
pht(
|
pht(
|
||||||
'Object "%s" specified by "--revision" must be a Differential '.
|
'Object "%s" specified by "--revision" must be a Differential '.
|
||||||
'revision.'));
|
'revision.',
|
||||||
|
$revision_identifier));
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$revision = id(new DifferentialRevisionQuery())
|
$revision = id(new DifferentialRevisionQuery())
|
||||||
|
|
|
@ -84,7 +84,8 @@ final class DifferentialRevisionRepositoryTransaction
|
||||||
$errors[] = $this->newInvalidError(
|
$errors[] = $this->newInvalidError(
|
||||||
pht(
|
pht(
|
||||||
'Repository "%s" is not a valid repository, or you do not have '.
|
'Repository "%s" is not a valid repository, or you do not have '.
|
||||||
'permission to view it.'),
|
'permission to view it.',
|
||||||
|
$new_value),
|
||||||
$xaction);
|
$xaction);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -43,6 +43,7 @@ final class PhabricatorChartFunctionArgumentParser
|
||||||
pht(
|
pht(
|
||||||
'Chart function "%s" emitted an argument specification ("%s") with '.
|
'Chart function "%s" emitted an argument specification ("%s") with '.
|
||||||
'no type. Each argument specification must have a valid type.',
|
'no type. Each argument specification must have a valid type.',
|
||||||
|
$this->getFunctionArgumentSignature(),
|
||||||
$name));
|
$name));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -54,6 +54,7 @@ final class HarbormasterManagementPublishWorkflow
|
||||||
pht(
|
pht(
|
||||||
'Object "%s" is not a HarbormasterBuildable (it is a "%s"). '.
|
'Object "%s" is not a HarbormasterBuildable (it is a "%s"). '.
|
||||||
'Name one or more buildables to publish, like "B123".',
|
'Name one or more buildables to publish, like "B123".',
|
||||||
|
$name,
|
||||||
get_class($result)));
|
get_class($result)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -177,6 +177,8 @@ final class HarbormasterBuildLog
|
||||||
pht(
|
pht(
|
||||||
'Attempt to load log bytes (%d - %d) failed: failed to '.
|
'Attempt to load log bytes (%d - %d) failed: failed to '.
|
||||||
'load a single contiguous range. Actual ranges: %s.',
|
'load a single contiguous range. Actual ranges: %s.',
|
||||||
|
$offset,
|
||||||
|
$end,
|
||||||
implode('; ', $display_ranges)));
|
implode('; ', $display_ranges)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -199,8 +199,7 @@ final class ManiphestTaskPriority extends ManiphestConstants {
|
||||||
throw new Exception(
|
throw new Exception(
|
||||||
pht(
|
pht(
|
||||||
'Configuration is not valid. Maniphest priority configurations '.
|
'Configuration is not valid. Maniphest priority configurations '.
|
||||||
'must be dictionaries.',
|
'must be dictionaries.'));
|
||||||
$config));
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$all_keywords = array();
|
$all_keywords = array();
|
||||||
|
|
|
@ -65,6 +65,7 @@ abstract class PhabricatorMailAdapter
|
||||||
pht(
|
pht(
|
||||||
'Adapter ("%s") is configured for medium "%s", but this is not '.
|
'Adapter ("%s") is configured for medium "%s", but this is not '.
|
||||||
'a supported delivery medium. Supported media are: %s.',
|
'a supported delivery medium. Supported media are: %s.',
|
||||||
|
get_class($this),
|
||||||
$medium,
|
$medium,
|
||||||
implode(', ', $native_map)));
|
implode(', ', $native_map)));
|
||||||
}
|
}
|
||||||
|
|
|
@ -98,7 +98,9 @@ final class PhabricatorNotificationServersConfigType
|
||||||
'Notification server configuration describes an invalid host '.
|
'Notification server configuration describes an invalid host '.
|
||||||
'("%s", at index "%s"). This is an "admin" service but it has a '.
|
'("%s", at index "%s"). This is an "admin" service but it has a '.
|
||||||
'"path" property. This property is only valid for "client" '.
|
'"path" property. This property is only valid for "client" '.
|
||||||
'services.'));
|
'services.',
|
||||||
|
$host,
|
||||||
|
$index));
|
||||||
}
|
}
|
||||||
|
|
||||||
// We can't guarantee that you didn't just give the same host two
|
// We can't guarantee that you didn't just give the same host two
|
||||||
|
|
|
@ -85,7 +85,8 @@ final class NuanceGitHubRawEventTestCase
|
||||||
throw new Exception(
|
throw new Exception(
|
||||||
pht(
|
pht(
|
||||||
'Expected test file "%s" to contain exactly two sections, '.
|
'Expected test file "%s" to contain exactly two sections, '.
|
||||||
'but it has more than two sections.'));
|
'but it has more than two sections.',
|
||||||
|
$file));
|
||||||
}
|
}
|
||||||
|
|
||||||
list($input, $expect) = $parts;
|
list($input, $expect) = $parts;
|
||||||
|
|
|
@ -71,7 +71,6 @@ final class PhragmentRevertController extends PhragmentController {
|
||||||
->appendParagraph(pht(
|
->appendParagraph(pht(
|
||||||
'Reverting this fragment to version %d will create a new version of '.
|
'Reverting this fragment to version %d will create a new version of '.
|
||||||
'the fragment. It will not delete any version history.',
|
'the fragment. It will not delete any version history.',
|
||||||
$version->getSequence(),
|
|
||||||
$version->getSequence()));
|
$version->getSequence()));
|
||||||
return id(new AphrontDialogResponse())->setDialog($dialog);
|
return id(new AphrontDialogResponse())->setDialog($dialog);
|
||||||
}
|
}
|
||||||
|
|
|
@ -266,8 +266,7 @@ final class PhabricatorPolicy
|
||||||
return pht(
|
return pht(
|
||||||
'Members of a particular project can take this action. (You '.
|
'Members of a particular project can take this action. (You '.
|
||||||
'can not see this object, so the name of this project is '.
|
'can not see this object, so the name of this project is '.
|
||||||
'restricted.)',
|
'restricted.)');
|
||||||
$handle->getFullName());
|
|
||||||
} else if ($type == PhabricatorPeopleUserPHIDType::TYPECONST) {
|
} else if ($type == PhabricatorPeopleUserPHIDType::TYPECONST) {
|
||||||
return pht(
|
return pht(
|
||||||
'%s can take this action.',
|
'%s can take this action.',
|
||||||
|
|
|
@ -224,6 +224,7 @@ final class PhabricatorProjectIconSet
|
||||||
'Icon key "%s" is not a valid icon key. Icon keys must be 1-32 '.
|
'Icon key "%s" is not a valid icon key. Icon keys must be 1-32 '.
|
||||||
'characters long and contain only lowercase letters. For example, '.
|
'characters long and contain only lowercase letters. For example, '.
|
||||||
'"%s" and "%s" are reasonable keys.',
|
'"%s" and "%s" are reasonable keys.',
|
||||||
|
$value['key'],
|
||||||
'tag',
|
'tag',
|
||||||
'group'));
|
'group'));
|
||||||
}
|
}
|
||||||
|
|
|
@ -17,7 +17,8 @@ abstract class FerretSearchFunction
|
||||||
pht(
|
pht(
|
||||||
'Ferret search engine function name ("%s") is invalid. Function '.
|
'Ferret search engine function name ("%s") is invalid. Function '.
|
||||||
'names must be nonempty and may only contain latin letters and '.
|
'names must be nonempty and may only contain latin letters and '.
|
||||||
'hyphens.'));
|
'hyphens.',
|
||||||
|
$function_name));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -77,6 +78,7 @@ abstract class FerretSearchFunction
|
||||||
'Ferret function "%s" is specified with a denormalized name. '.
|
'Ferret function "%s" is specified with a denormalized name. '.
|
||||||
'Instead, specify the function using the normalized '.
|
'Instead, specify the function using the normalized '.
|
||||||
'function name ("%s").',
|
'function name ("%s").',
|
||||||
|
$function_name,
|
||||||
$normal_name));
|
$normal_name));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2548,7 +2548,9 @@ abstract class PhabricatorEditEngine
|
||||||
pht(
|
pht(
|
||||||
'Extension "%s" defines a bulk edit group with the same key '.
|
'Extension "%s" defines a bulk edit group with the same key '.
|
||||||
'("%s") as the main editor or another extension. Each bulk '.
|
'("%s") as the main editor or another extension. Each bulk '.
|
||||||
'edit group must have a unique key.'));
|
'edit group must have a unique key.',
|
||||||
|
get_class($extension),
|
||||||
|
$key));
|
||||||
}
|
}
|
||||||
|
|
||||||
$map[$key] = $group;
|
$map[$key] = $group;
|
||||||
|
|
|
@ -204,7 +204,8 @@ final class PhabricatorEditEngineSubtype
|
||||||
pht(
|
pht(
|
||||||
'Subtype configuration is invalid: subtype with key "%s" '.
|
'Subtype configuration is invalid: subtype with key "%s" '.
|
||||||
'specifies both child subtypes and child forms. Specify one '.
|
'specifies both child subtypes and child forms. Specify one '.
|
||||||
'or the other, but not both.'));
|
'or the other, but not both.',
|
||||||
|
$key));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -205,6 +205,8 @@ final class PhabricatorDatabaseRefParser
|
||||||
'Database "%s" is configured as a replica and specifies a '.
|
'Database "%s" is configured as a replica and specifies a '.
|
||||||
'master ("%s"), but that master is not a valid master. Valid '.
|
'master ("%s"), but that master is not a valid master. Valid '.
|
||||||
'masters are: %s.',
|
'masters are: %s.',
|
||||||
|
$ref->getRefKey(),
|
||||||
|
$master_key,
|
||||||
implode(', ', $master_keys)));
|
implode(', ', $master_keys)));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@ final class PhabricatorCustomFieldApplicationSearchNoneFunctionDatasource
|
||||||
'summary' => pht('Find results with no value.'),
|
'summary' => pht('Find results with no value.'),
|
||||||
'description' => pht(
|
'description' => pht(
|
||||||
"This function includes results which have no value. Use a query ".
|
"This function includes results which have no value. Use a query ".
|
||||||
"like this to find results with no value:\n\n%s\n\n",
|
"like this to find results with no value:\n\n%s\n\n".
|
||||||
'If you combine this function with other constraints, results '.
|
'If you combine this function with other constraints, results '.
|
||||||
'which have no value or the specified values will be returned.',
|
'which have no value or the specified values will be returned.',
|
||||||
'> any()'),
|
'> any()'),
|
||||||
|
|
Loading…
Reference in a new issue