summaryrefslogtreecommitdiff
path: root/ale_linters/python
diff options
context:
space:
mode:
authorKeith Smiley <keithbsmiley@gmail.com>2016-10-27 16:24:32 +1000
committerKeith Smiley <keithbsmiley@gmail.com>2016-10-27 18:38:26 -0700
commit86cc2aab7107c2dc75bea568e3d9a91b46b1a295 (patch)
treeca6f8763bec7eeed7f6090175115af06d67cdb88 /ale_linters/python
parentc8821fc0495d1d75cb3d716d73c4c28877e3513a (diff)
downloadale-86cc2aab7107c2dc75bea568e3d9a91b46b1a295.zip
Add pylint formatter
This customizes the output format of pylint in order to use the same pep8 parser
Diffstat (limited to 'ale_linters/python')
-rw-r--r--ale_linters/python/pylint.vim9
1 files changed, 9 insertions, 0 deletions
diff --git a/ale_linters/python/pylint.vim b/ale_linters/python/pylint.vim
new file mode 100644
index 00000000..9e6093c7
--- /dev/null
+++ b/ale_linters/python/pylint.vim
@@ -0,0 +1,9 @@
+" Author: keith <k@keith.so>
+" Description: pylint for python files
+
+call ale#linter#Define('python', {
+\ 'name': 'pylint',
+\ 'executable': 'pylint',
+\ 'command': g:ale#util#stdin_wrapper . ' .py pylint --output-format text --msg-template="{path}:{line}:{column}: {msg_id} {msg}" --reports n',
+\ 'callback': 'ale#handlers#HandlePEP8Format',
+\})