Changeset View
Changeset View
Standalone View
Standalone View
src/lint/linter/ArcanistPhutilLibraryLinter.php
Show First 20 Lines • Show All 298 Lines • ▼ Show 20 Lines | foreach ($symbols as $library => $map) { | ||||
'Use of unknown class or interface symbol "%s".', | 'Use of unknown class or interface symbol "%s".', | ||||
$symbol); | $symbol); | ||||
break; | break; | ||||
} | } | ||||
$details = pht( | $details = pht( | ||||
"Common causes are:\n". | "Common causes are:\n". | ||||
"\n". | "\n". | ||||
" - Your copy of Arcanist is out of date.\n". | " - Your copy of %s is out of date.\n". | ||||
" This is the most common cause.\n". | " This is the most common cause.\n". | ||||
" Update this copy of Arcanist:\n". | " Update this copy of %s:\n". | ||||
"\n". | "\n". | ||||
" %s\n". | " %s\n". | ||||
"\n". | "\n". | ||||
" - Some other library is out of date.\n". | " - Some other library is out of date.\n". | ||||
" Update the library this symbol appears in.\n". | " Update the library this symbol appears in.\n". | ||||
"\n". | "\n". | ||||
" - The symbol is misspelled.\n". | " - The symbol is misspelled.\n". | ||||
" Spell the symbol name correctly.\n". | " Spell the symbol name correctly.\n". | ||||
"\n". | "\n". | ||||
" - You added the symbol recently, but have not updated\n". | " - You added the symbol recently, but have not updated\n". | ||||
" the symbol map for the library.\n". | " the symbol map for the library.\n". | ||||
" Run \"arc liberate\" in the library where the symbol is\n". | " Run \"arc liberate\" in the library where the symbol is\n". | ||||
" defined.\n". | " defined.\n". | ||||
"\n". | "\n". | ||||
" - This symbol is defined in an external library.\n". | " - This symbol is defined in an external library.\n". | ||||
" Use \"@phutil-external-symbol\" to annotate it.\n". | " Use \"@phutil-external-symbol\" to annotate it.\n". | ||||
" Use \"grep\" to find examples of usage.", | " Use \"grep\" to find examples of usage.", | ||||
PlatformSymbols::getPlatformClientName(), | |||||
PlatformSymbols::getPlatformClientName(), | |||||
$arcanist_root); | $arcanist_root); | ||||
$message = implode( | $message = implode( | ||||
"\n\n", | "\n\n", | ||||
array( | array( | ||||
$summary, | $summary, | ||||
$details, | $details, | ||||
)); | )); | ||||
Show All 36 Lines |