From 833ce4515566651cbd7e1a19f10cb9aa7b7f02bb Mon Sep 17 00:00:00 2001 From: Joshua Spence Date: Mon, 9 Jun 2014 11:36:00 -0700 Subject: [PATCH] Lint the `ArcanistSpellingDefaultData` class. 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 | 5 ++++- src/lint/linter/spelling/ArcanistSpellingDefaultData.php | 2 -- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.arclint b/.arclint index 992fb7a0..0f4ed631 100644 --- a/.arclint +++ b/.arclint @@ -31,7 +31,10 @@ "type": "text" }, "spelling": { - "type": "spelling" + "type": "spelling", + "exclude": [ + "(^src/lint/linter/spelling/ArcanistSpellingDefaultData\\.php$)" + ] }, "xhpast": { "type": "xhpast", diff --git a/src/lint/linter/spelling/ArcanistSpellingDefaultData.php b/src/lint/linter/spelling/ArcanistSpellingDefaultData.php index 5b30e1ef..ed3697d0 100644 --- a/src/lint/linter/spelling/ArcanistSpellingDefaultData.php +++ b/src/lint/linter/spelling/ArcanistSpellingDefaultData.php @@ -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 -- 2.43.0