Page MenuHomePhabricator

Add a "product name literal in pht()" linter
ClosedPublic

Authored by epriestley on Apr 25 2022, 4:41 PM.
Tags
None
Referenced Files
F13204906: D21763.diff
Wed, May 15, 1:14 AM
F13188131: D21763.diff
Sat, May 11, 5:03 AM
Unknown Object (File)
Tue, May 7, 8:15 AM
Unknown Object (File)
Fri, May 3, 7:58 AM
Unknown Object (File)
Mon, Apr 29, 3:10 AM
Unknown Object (File)
Thu, Apr 25, 4:29 PM
Unknown Object (File)
Thu, Apr 25, 1:56 AM
Unknown Object (File)
Tue, Apr 23, 7:51 AM
Subscribers
None

Details

Summary

Ref T13658. One challenge in forking Phabricator is product name references in user-visible strings, particularly in "pht()".

Add a linter to identify the use of product name literals in "pht()" text.

The linter could fix these automatically, but it looks like there are fewer than 200 across both Arcanist and Phabricator and some sampling suggests that many are probably clearer when rewritten into generic language anyway.

Test Plan

Ran linter, saw it pop out reasonable warnings.

Diff Detail

Repository
rARC Arcanist
Lint
Lint Not Applicable
Unit
Tests Not Applicable