]> khamidou — GitHub mirrors - arcanist.git/commit
Modernize `ArcanistPylintLinter`
authorJoshua Spence <josh@joshuaspence.com>
Thu, 14 May 2015 07:49:24 +0000 (17:49 +1000)
committerJoshua Spence <josh@joshuaspence.com>
Thu, 14 May 2015 07:58:55 +0000 (17:58 +1000)
commita6a26bb3a30ab0f7270dee4b9355a5c3f2fb090f
treed88157702ac66e676d38b1fb71e38aefd184b618
parent3ae1fed4f9143a56d5629b6eeab8f8a6b5c57529
Modernize `ArcanistPylintLinter`

Summary:
Ref T2039. Convert the `ArcanistPylintLinter` to an `ArcanistExternalLinter` and make it compatible with `.arclint`. In doing so, it was necessary to drop support of older versions of `pylint` by setting the minimum version to be 1.0.0. I think that dropping support for older versions is reasonable because version 1.0.0 was released ~18 months ago. In the case than an incompatible version is detected, an `ArcanistMissingLinterException` is thrown.

One caveat here is that support for `lint.pylint.codes.(error|warning|advice)` is dropped. Any installs that are relying on this configuration will need to migrate to using the `.arclint` file for specifying linter severity. We could potentially continue to support this deprecated configuration, but I'm not sure if this is worthwhile.

Test Plan: Wrote and executed unit tests with `arc unit`. I ran the unit tests on all `pylint` releases after (and including) 1.0.0. Specifically, the tests were run on v1.0.0, v1.1.0, v1.2.0, v1.3.0 and v1.4.0.

Reviewers: epriestley, #blessed_reviewers

Reviewed By: epriestley, #blessed_reviewers

Subscribers: epriestley, Korvin

Maniphest Tasks: T2039

Differential Revision: https://secure.phabricator.com/D9109
src/__phutil_library_map__.php
src/lint/linter/ArcanistPyLintLinter.php