]> khamidou — GitHub mirrors - arcanist.git/commit
Warn when accessing deprecated lint config
authorepriestley <git@epriestley.com>
Mon, 12 May 2014 01:39:28 +0000 (18:39 -0700)
committerepriestley <git@epriestley.com>
Mon, 12 May 2014 01:39:28 +0000 (18:39 -0700)
commit7870e7f2e46d220ef39dfdf1cc3f4322a92e5198
tree1e438a7be662e7056f56b3c2ecdeb01206393633
parent377c585752b6c0c85dfa35ace1c5dadd8aeb09ef
Warn when accessing deprecated lint config

Summary:
Ref T2039. Addresses two issues:

  - Issues a warning for use of config which is deprecated by `.arclint`.
  - We no longer require an engine to be present for these linters, so `arc linters` doesn't fatal if they aren't configured.

Test Plan:
  - Ran `arc linters` in a repo with no JSHint.
  - Ran `arc linters` in a repo with junk in .arcconfig and got a warning when it was read. Verified it still took effect.

Reviewers: chad, btrahan, joshuaspence

Reviewed By: joshuaspence

Subscribers: epriestley

Maniphest Tasks: T2039

Differential Revision: https://secure.phabricator.com/D9058
12 files changed:
src/lint/engine/ComprehensiveLintEngine.php
src/lint/linter/ArcanistCSSLintLinter.php
src/lint/linter/ArcanistCpplintLinter.php
src/lint/linter/ArcanistExternalLinter.php
src/lint/linter/ArcanistFlake8Linter.php
src/lint/linter/ArcanistJSHintLinter.php
src/lint/linter/ArcanistLinter.php
src/lint/linter/ArcanistPEP8Linter.php
src/lint/linter/ArcanistPhpcsLinter.php
src/lint/linter/ArcanistPyFlakesLinter.php
src/lint/linter/ArcanistRubyLinter.php
src/lint/linter/ArcanistScalaSBTLinter.php