]> khamidou — GitHub mirrors - arcanist.git/commit
arc lint: add support for PyLint
authorAndrew Gallagher <agallagher@fb.com>
Sun, 22 May 2011 10:32:26 +0000 (03:32 -0700)
committerAndrew Gallagher <agallagher@fb.com>
Wed, 25 May 2011 21:14:51 +0000 (14:14 -0700)
commitd762311a9de9ae331949743e7b37fc920b7c6dff
treedbb0797c416ee5c097f0dc9e2deacf41b657077f
parent1ef7aacff1adc604c89268a8776361e4f251afa9
arc lint: add support for PyLint

Summary:
Provides a lint class as a wrapper around the external project PyLint.
This exposes some arc config variables to control the behavior:

lint.pylint.prefix - non-standard installation location of pylint
lint.pylint.logilab_astng.prefix - non-standard installation location
  of logilab-astng, a dependency of pylint
lint.pylint.logilab_common.prefix - non-standard installation location
  of logilab-common, a dependency of pylint
lint.pylint.codes.{error,warning,advice} - regexes matching against
  PyLint message codes which should trigger arc errors/warnings/advice
lint.pylint.options - options to pass PyLint

Test Plan:
used to lint python code

Reviewed By: epriestley
Reviewers: epriestley, jungejason
CC: aran, epriestley
Differential Revision: 343
src/__phutil_library_map__.php
src/lint/linter/pylint/ArcanistPyLintLinter.php [new file with mode: 0644]
src/lint/linter/pylint/__init__.php [new file with mode: 0644]