commit
e9bbbbdf3e
9
ale_linters/python/pylint.vim
Normal file
9
ale_linters/python/pylint.vim
Normal file
@ -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',
|
||||||
|
\})
|
@ -4,7 +4,7 @@ scriptencoding utf-8
|
|||||||
" linter which outputs warnings and errors in a format accepted by one of
|
" linter which outputs warnings and errors in a format accepted by one of
|
||||||
" these functions can simply use one of these pre-defined error handlers.
|
" these functions can simply use one of these pre-defined error handlers.
|
||||||
|
|
||||||
let s:path_pattern = '[a-zA-Z]\?\\\?:\?[[:alnum:]/\.-]\+'
|
let s:path_pattern = '[a-zA-Z]\?\\\?:\?[[:alnum:]/\.\-_]\+'
|
||||||
|
|
||||||
function! s:HandleUnixFormat(buffer, lines, type) abort
|
function! s:HandleUnixFormat(buffer, lines, type) abort
|
||||||
" Matches patterns line the following:
|
" Matches patterns line the following:
|
||||||
|
Loading…
Reference in New Issue
Block a user