]> khamidou — GitHub mirrors - arcanist.git/commit
External linters can now specify a version requirement.
authorJon Parise <jon@pinterest.com>
Wed, 21 Oct 2015 16:46:20 +0000 (09:46 -0700)
committerJon Parise <jon@pinterest.com>
Wed, 21 Oct 2015 16:46:20 +0000 (09:46 -0700)
commitb3ea439f4d86353466e7007289fb36c38ee0df09
tree5c152b43de2a72736ae1fda40709fd4ca8a65203
parente51e1c3d44640d60c9843c6f41ee06434cadf697
External linters can now specify a version requirement.

Summary:
Linters can now use the `version` configuration value to specify the required
version of the external binary. The version number may be prefixed with <, <=,
>, >=, or = to specify the version comparison operator (default: =).

PHP's native `version_compare()` function is used to perform the comparison.

Fixes T4954.

Test Plan: Tested against a sample of external linters.

Reviewers: joshuaspence, epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: Korvin, joshuaspence

Projects: #lint

Maniphest Tasks: T4954

Differential Revision: https://secure.phabricator.com/D14298
src/lint/linter/ArcanistExternalLinter.php