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
F19032248: D21763.diff
Tue, Nov 25, 5:27 AM
F19014747: D21763.diff
Sat, Nov 22, 9:39 PM
F18946451: D21763.id.diff
Tue, Nov 11, 8:18 PM
F18876406: D21763.diff
Thu, Nov 6, 12:16 AM
F18819902: D21763.diff
Oct 22 2025, 10:58 AM
F18806981: D21763.diff
Oct 18 2025, 10:20 PM
F18788459: D21763.id51882.diff
Oct 15 2025, 5:01 AM
F18788454: D21763.diff
Oct 15 2025, 5:01 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