mirror of
https://we.phorge.it/source/arcanist.git
synced 2024-12-25 23:10:56 +01:00
Use punctuation in spelling linter
Summary: Also move dependency one directory down. Test Plan: $ arc lint # on file with "teh" Reviewers: jack, epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D3436
This commit is contained in:
parent
466910c700
commit
a309e5e1eb
3 changed files with 3 additions and 3 deletions
|
@ -106,7 +106,7 @@ phutil_register_library_map(array(
|
|||
'ArcanistSettings' => 'configuration/ArcanistSettings.php',
|
||||
'ArcanistShellCompleteWorkflow' => 'workflow/ArcanistShellCompleteWorkflow.php',
|
||||
'ArcanistSingleLintEngine' => 'lint/engine/ArcanistSingleLintEngine.php',
|
||||
'ArcanistSpellingDefaultData' => 'lint/linter/ArcanistSpellingDefaultData.php',
|
||||
'ArcanistSpellingDefaultData' => 'lint/linter/spelling/ArcanistSpellingDefaultData.php',
|
||||
'ArcanistSpellingLinter' => 'lint/linter/ArcanistSpellingLinter.php',
|
||||
'ArcanistSpellingLinterTestCase' => 'lint/linter/__tests__/ArcanistSpellingLinterTestCase.php',
|
||||
'ArcanistSubversionAPI' => 'repository/api/ArcanistSubversionAPI.php',
|
||||
|
|
|
@ -115,7 +115,7 @@ final class ArcanistSpellingLinter extends ArcanistLinter {
|
|||
$next,
|
||||
$severity,
|
||||
sprintf(
|
||||
"Possible spelling error. You wrote '%s', but did you mean '%s'",
|
||||
"Possible spelling error. You wrote '%s', but did you mean '%s'?",
|
||||
$word,
|
||||
$correct_word
|
||||
)
|
||||
|
@ -141,7 +141,7 @@ final class ArcanistSpellingLinter extends ArcanistLinter {
|
|||
$match[1],
|
||||
$severity,
|
||||
sprintf(
|
||||
"Possible spelling error. You wrote '%s', but did you mean '%s'",
|
||||
"Possible spelling error. You wrote '%s', but did you mean '%s'?",
|
||||
$word,
|
||||
$correct_word
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue