]> khamidou — GitHub mirrors - arcanist.git/commit
Add a `getVersion` function to `ArcanistExternalLinter`.
authorJoshua Spence <josh@joshuaspence.com>
Mon, 5 May 2014 22:10:20 +0000 (15:10 -0700)
committerepriestley <git@epriestley.com>
Mon, 5 May 2014 22:10:20 +0000 (15:10 -0700)
commitf2b341ae038a247cfc89b6b3db749b7054591a44
treeca43ac8479748cca52dbb8c56180a1664a377c50
parenta7327ca0e9432bd14bdd5fe19c54d1a157e0c9a7
Add a `getVersion` function to `ArcanistExternalLinter`.

Summary:
This method will, theoretically, allow `arc lint` to be configured to require some minimum version of an external linter (although this would probably require significantly more work).

Additionally, the existence of this method simplifies the `getCacheVersion` function which, previously, was implemented by the external linters individually. Instead, a general approach to determining the version for cacheing purposes can be used.

Fixes T4954.

Test Plan: I'm not sure how to test this.

Reviewers: chad, epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: epriestley, Korvin

Maniphest Tasks: T4954

Differential Revision: https://secure.phabricator.com/D8971
src/lint/linter/ArcanistCSSLintLinter.php
src/lint/linter/ArcanistExternalLinter.php
src/lint/linter/ArcanistFlake8Linter.php
src/lint/linter/ArcanistJSHintLinter.php
src/lint/linter/ArcanistPEP8Linter.php
src/lint/linter/ArcanistPhpcsLinter.php
src/lint/linter/ArcanistRubyLinter.php