Page MenuHomePhabricator

Remove all product name literals in "pht()" in Arcanist
ClosedPublic

Authored by epriestley on Apr 25 2022, 4:44 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Apr 5, 3:44 AM
Unknown Object (File)
Wed, Apr 3, 5:30 PM
Unknown Object (File)
Wed, Apr 3, 5:29 PM
Unknown Object (File)
Tue, Apr 2, 4:19 AM
Unknown Object (File)
Sat, Mar 30, 11:16 AM
Unknown Object (File)
Sat, Mar 30, 10:24 AM
Unknown Object (File)
Fri, Mar 29, 1:17 AM
Unknown Object (File)
Mar 4 2024, 10:08 PM
Subscribers
None

Details

Summary

Ref T13658. Remove all product name literals from "pht()" strings, by replacing them with generic text where that feels reasonably natural, or "PlatformSymbols" calls elsewhere.

These calls were identified with arc lint --everything after enabling the lint rule in D21763.

Test Plan

Read strings, ran "arc".

Diff Detail

Repository
rARC Arcanist
Branch
product2
Lint
Lint Passed
Unit
Test Failures
Build Status
Buildable 25667
Build 35495: arc lint + arc unit

Unit TestsFailed

TimeTest
1,119 msArcanistBundleTestCase::testGitRepository
EXCEPTION (Exception): This patch has binary data. The PHP zlib extension is required to apply patches with binary data to git. Install the PHP zlib extension to continue. #0 /Users/epriestley/dev/core/lib/arcanist/src/parser/ArcanistBundle.php(823): ArcanistBundle::newBase85Data('\x89PNG\r\n\x1A\n\x00\x00\x00\rIHD...', '\n') #1 /Users/epriestley/dev/core/lib/arcanist/src/parser/ArcanistBundle.php(813): ArcanistBundle->emitBinaryDiffBody('\x89PNG\r\n\x1A\n\x00\x00\x00\rIHD...')
0 msAbstractDirectedGraphTestCase::testCyclicGraph
1 assertion(s) passed.
0 msAbstractDirectedGraphTestCase::testEdgeLoadFailure
1 assertion(s) passed.
0 msAbstractDirectedGraphTestCase::testNonTreeGraph
1 assertion(s) passed.
0 msAbstractDirectedGraphTestCase::testNoncyclicGraph
1 assertion(s) passed.
View Full Test Results (1 Failed · 169 Passed)

Event Timeline

epriestley created this revision.
  • Additional PHP 8.1 "strlen(null)" fix.
  • One additional PHP 8.1 fix for float/int precision.
This revision was not accepted when it landed; it landed in state Needs Review.Apr 25 2022, 7:21 PM
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.