]> khamidou — GitHub mirrors - arcanist.git/commit
Simplify and demuck some of the linter test cases
authorepriestley <git@epriestley.com>
Thu, 22 Aug 2013 23:02:41 +0000 (16:02 -0700)
committerepriestley <git@epriestley.com>
Thu, 22 Aug 2013 23:02:41 +0000 (16:02 -0700)
commitf18130a6aa7a8666be959ce9f6ec4867fb76fdf9
treeb42557bb70876f7fd4413312753ca30635a6b654
parent97ad54ed0053595ec76fd1fab575c35b1732a1c0
Simplify and demuck some of the linter test cases

Summary:
Ref T3186.

  - Every linter builds a WorkingCopyIdentity in the same way, with no specialized data. Don't do that.
  - Linters get passed a goofy hardcoded ".php" path. Don't do that.
  - Linters generally run on an imaginary path, which might not work. Just give them a real path by building a tiny working copy in `/tmp`.
  - Fix a TODO now that we have better typechecking.

Test Plan: `arc unit --everything`, intentionally broke a test to make sure that still works.

Reviewers: btrahan

Reviewed By: btrahan

CC: aran
Maniphest Tasks: T3186

Differential Revision: https://secure.phabricator.com/D6798
src/lint/linter/__tests__/ArcanistCpplintLinterTestCase.php
src/lint/linter/__tests__/ArcanistFlake8LinterTestCase.php
src/lint/linter/__tests__/ArcanistLinterTestCase.php
src/lint/linter/__tests__/ArcanistPhutilXHPASTLinterTestCase.php
src/lint/linter/__tests__/ArcanistRubyLinterTestCase.php
src/lint/linter/__tests__/ArcanistSpellingLinterTestCase.php
src/lint/linter/__tests__/ArcanistTextLinterTestCase.php
src/lint/linter/__tests__/ArcanistXHPASTLinterTestCase.php
src/workingcopyidentity/ArcanistWorkingCopyIdentity.php