]> khamidou — GitHub mirrors - arcanist.git/commit
Move `LINT_NO_COMMIT` from `ArcanistTextLinter` to a new linter
authorJoshua Spence <josh@joshuaspence.com>
Sun, 4 Jan 2015 05:20:31 +0000 (16:20 +1100)
committerJoshua Spence <josh@joshuaspence.com>
Sun, 4 Jan 2015 05:20:32 +0000 (16:20 +1100)
commit4e3df805844cb35bb6f500c3bf0c2a9cfe872ea3
tree8a941a9e611c6f49a56cbeec4363764041048cb6
parent821ebcdd0727d86b35b725042f6a724eaeebf4a2
Move `LINT_NO_COMMIT` from `ArcanistTextLinter` to a new linter

Summary: I don't feel that this linter rule belongs in the `ArcanistTextLinter`. In fact, this linter rule is quite similar to the rules provided by `ArcanistGeneratedLinter` and `ArcanistNoLintLinter` and these classes could possibly be consolidated. I have moved this linter rule to a standalone `ArcanistCommitLinter` class (which could possibly do additional lints in the future).

Test Plan: Moved existing test cases.

Reviewers: #blessed_reviewers, epriestley

Reviewed By: #blessed_reviewers, epriestley

Subscribers: epriestley, Korvin

Differential Revision: https://secure.phabricator.com/D10473
src/__phutil_library_map__.php
src/lint/linter/ArcanistCommitLinter.php [new file with mode: 0644]
src/lint/linter/ArcanistTextLinter.php
src/lint/linter/__tests__/ArcanistCommitLinterTestCase.php [new file with mode: 0644]
src/lint/linter/__tests__/commit/nocommit-hook.lint-test [moved from src/lint/linter/__tests__/text/nocommit-hook.lint-test with 76% similarity]
src/lint/linter/__tests__/commit/nocommit-nohook.lint-test [moved from src/lint/linter/__tests__/text/nocommit-nohook.lint-test with 100% similarity]