]> khamidou — GitHub mirrors - arcanist.git/commit
fix bugs and documentation for ArcanistPyLintLinter
authorChris Piro <cpiro@airtime.com>
Tue, 25 Oct 2011 20:46:13 +0000 (13:46 -0700)
committerepriestley <git@epriestley.com>
Tue, 25 Oct 2011 20:46:33 +0000 (13:46 -0700)
commit00e5ba7ddce8b0a5f9df0cdb2df802d5f7f57698
tree94493cf65ec7eb90aab9970674c5b2a86a83d7b7
parenta85e3444259146ac6f8a28516d000b883ad94976
fix bugs and documentation for ArcanistPyLintLinter

Summary:
- The top documentation is more readable, and the details about the severity
mapping regexps is moved to the top from inline -- they're important.
- array_merge() is used when appending command line args from
##lint.pylint.options## instead of '+'. The latter merges by key instead of
appending the two lists as intended.
- rely on the exit code instead of magic text that may or may not be there
depending on how ##pylint## is invoked.

These bugs were introduced in d762311a9de9ae331949743e7b37fc920b7c6dff.

Test Plan: ##arc lint --trace##'d a bunch of Python source files in a project,
with and without PyLint messages. Added some ##lint.pylint.options## to see
proper appending behavior.

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, epriestley, cpiro
Differential Revision: 1045
src/lint/linter/pylint/ArcanistPyLintLinter.php