]> khamidou — GitHub mirrors - arcanist.git/commitdiff
Lint the `ArcanistSpellingDefaultData` class.
authorJoshua Spence <josh@joshuaspence.com>
Mon, 9 Jun 2014 18:36:00 +0000 (11:36 -0700)
committerepriestley <git@epriestley.com>
Mon, 9 Jun 2014 18:36:00 +0000 (11:36 -0700)
Summary:
Currently, the `ArcanistSpellingDefaultData` is marked with a `@nolint` annotation. This means that it doesn't get linted by any linters. Really, the intention here was to make sure that this file isn't linted by the `ArcanistSpellingLinter` linter.

Now that the `.arclint` file is more mature, we can easily just exclude this file from being linted //only// by the spelling linter, whilst allowing other linters to run.

Test Plan: Ran `arc lint`.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: epriestley, Korvin

Differential Revision: https://secure.phabricator.com/D9432

.arclint
src/lint/linter/spelling/ArcanistSpellingDefaultData.php

index 992fb7a017dd5a25befd11dd31bf3d55d0442215..0f4ed631383f47195795441374cad0a53c81182a 100644 (file)
--- a/.arclint
+++ b/.arclint
       "type": "text"
     },
     "spelling": {
-      "type": "spelling"
+      "type": "spelling",
+      "exclude": [
+        "(^src/lint/linter/spelling/ArcanistSpellingDefaultData\\.php$)"
+      ]
     },
     "xhpast": {
       "type": "xhpast",
index 5b30e1ef5e33dc3f973a0df133383824c0c7aa7d..ed3697d0d71bee9ee577b16111a32b7f131908f2 100644 (file)
@@ -3,8 +3,6 @@
 /**
  * Contains default spelling correction rules for ArcanistSpellingLinter.
  * Inside its own file to keep logic of ArcanistSpellingLinter clean.
- *
- * @nolint
  */
 class ArcanistSpellingDefaultData {
   // From http://cpansearch.perl.org/src/APOCAL/Pod-Spell-CommonMistakes-1.000/lib/Pod/Spell/CommonMistakes/WordList.pm