mirror of
https://github.com/dense-analysis/ale.git
synced 2026-02-07 10:21:05 +08:00
Fix #596 - Report exceptions thrown by flake8
This commit is contained in:
@@ -2,6 +2,16 @@
|
||||
" Description: Error handling for flake8, etc.
|
||||
|
||||
function! ale#handlers#python#HandlePEP8Format(buffer, lines) abort
|
||||
for l:line in a:lines[:10]
|
||||
if match(l:line, '^Traceback') >= 0
|
||||
return [{
|
||||
\ 'lnum': 1,
|
||||
\ 'text': 'An exception was thrown. See :ALEDetail',
|
||||
\ 'detail': join(a:lines, "\n"),
|
||||
\}]
|
||||
endif
|
||||
endfor
|
||||
|
||||
" Matches patterns line the following:
|
||||
"
|
||||
" Matches patterns line the following:
|
||||
|
||||
Reference in New Issue
Block a user