]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Use punctuation in spelling linter
authorvrana <jakubv@fb.com>
Wed, 5 Sep 2012 06:45:54 +0000 (23:45 -0700)
committervrana <jakubv@fb.com>
Wed, 5 Sep 2012 17:14:29 +0000 (10:14 -0700)
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

src/__phutil_library_map__.php
src/lint/linter/ArcanistSpellingLinter.php
src/lint/linter/spelling/ArcanistSpellingDefaultData.php [moved from src/lint/linter/ArcanistSpellingDefaultData.php with 100% similarity]

index 11cff90a8c36864b89bda6da089fd8cb173a509f..a69de0b8e32c0d531cdec126903374f1ca21c372 100644 (file)
@@ -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',
index 5abd8933a297435a1a45db7a4c7f99b7d19798e5..7d0432384b2d201bd0622be7238ff1ee03531886 100644 (file)
@@ -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
         )