Skip to content

Commit 6e1b5da

Browse files
author
epriestley
committed
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
1 parent 7daaaa8 commit 6e1b5da

File tree

18 files changed

+30
-14
lines changed

18 files changed

+30
-14
lines changed

resources/sql/autopatches/20150602.mlist.2.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,8 @@
4040
if (!$username_okay) {
4141
echo pht(
4242
'Failed to migrate mailing list "%s": unable to generate a unique '.
43-
'username for it.')."\n";
43+
'username for it.',
44+
$name)."\n";
4445
continue;
4546
}
4647

src/applications/differential/management/PhabricatorDifferentialRebuildChangesetsWorkflow.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ public function execute(PhutilArgumentParser $args) {
3636
throw new PhutilArgumentUsageException(
3737
pht(
3838
'Object "%s" specified by "--revision" must be a Differential '.
39-
'revision.'));
39+
'revision.',
40+
$revision_identifier));
4041
}
4142
} else {
4243
$revision = id(new DifferentialRevisionQuery())

src/applications/differential/xaction/DifferentialRevisionRepositoryTransaction.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,8 @@ public function validateTransactions($object, array $xactions) {
8484
$errors[] = $this->newInvalidError(
8585
pht(
8686
'Repository "%s" is not a valid repository, or you do not have '.
87-
'permission to view it.'),
87+
'permission to view it.',
88+
$new_value),
8889
$xaction);
8990
}
9091
}

src/applications/fact/chart/PhabricatorChartFunctionArgumentParser.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ public function addArgument(PhabricatorChartFunctionArgument $spec) {
4343
pht(
4444
'Chart function "%s" emitted an argument specification ("%s") with '.
4545
'no type. Each argument specification must have a valid type.',
46+
$this->getFunctionArgumentSignature(),
4647
$name));
4748
}
4849

src/applications/harbormaster/management/HarbormasterManagementPublishWorkflow.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ public function execute(PhutilArgumentParser $args) {
5454
pht(
5555
'Object "%s" is not a HarbormasterBuildable (it is a "%s"). '.
5656
'Name one or more buildables to publish, like "B123".',
57+
$name,
5758
get_class($result)));
5859
}
5960
}

src/applications/harbormaster/storage/build/HarbormasterBuildLog.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,8 @@ public function loadData($offset, $length) {
177177
pht(
178178
'Attempt to load log bytes (%d - %d) failed: failed to '.
179179
'load a single contiguous range. Actual ranges: %s.',
180+
$offset,
181+
$end,
180182
implode('; ', $display_ranges)));
181183
}
182184

src/applications/maniphest/constants/ManiphestTaskPriority.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,8 +199,7 @@ public static function validateConfiguration($config) {
199199
throw new Exception(
200200
pht(
201201
'Configuration is not valid. Maniphest priority configurations '.
202-
'must be dictionaries.',
203-
$config));
202+
'must be dictionaries.'));
204203
}
205204

206205
$all_keywords = array();

src/applications/metamta/adapter/PhabricatorMailAdapter.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ final public function setMedia(array $media) {
6565
pht(
6666
'Adapter ("%s") is configured for medium "%s", but this is not '.
6767
'a supported delivery medium. Supported media are: %s.',
68+
get_class($this),
6869
$medium,
6970
implode(', ', $native_map)));
7071
}

src/applications/notification/config/PhabricatorNotificationServersConfigType.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,9 @@ public function validateStoredValue(
9898
'Notification server configuration describes an invalid host '.
9999
'("%s", at index "%s"). This is an "admin" service but it has a '.
100100
'"path" property. This property is only valid for "client" '.
101-
'services.'));
101+
'services.',
102+
$host,
103+
$index));
102104
}
103105

104106
// We can't guarantee that you didn't just give the same host two

src/applications/nuance/github/__tests__/NuanceGitHubRawEventTestCase.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,8 @@ private function readTestCases($path) {
8585
throw new Exception(
8686
pht(
8787
'Expected test file "%s" to contain exactly two sections, '.
88-
'but it has more than two sections.'));
88+
'but it has more than two sections.',
89+
$file));
8990
}
9091

9192
list($input, $expect) = $parts;

0 commit comments

Comments
 (0)