summaryrefslogtreecommitdiff
path: root/ale_linters/python
diff options
context:
space:
mode:
authorPablo Acosta-Serafini <pmasdev@gmail.com>2019-01-14 20:36:14 -0500
committerPablo Acosta-Serafini <pmasdev@gmail.com>2019-01-14 20:36:14 -0500
commit86af4be0d0ca484c8549ea331f07732680784cd9 (patch)
tree118742ccddcd63ca0f603382aef1fd579d08d7c9 /ale_linters/python
parenta50e049e747739c711198bd706c7340e16b182cc (diff)
downloadale-86af4be0d0ca484c8549ea331f07732680784cd9.zip
Fixed parsing of pydocstyle errors
ale#Escape function seems to prepend and append ' to the file name, which are not present in the pydocstyle output. Having the parsing regexp match the file name was overkill anyway, since there is an obvious 1:1 correspondence between the buffer number and the (potential) errors reported by pydocstyle.
Diffstat (limited to 'ale_linters/python')
-rw-r--r--ale_linters/python/pydocstyle.vim3
1 files changed, 1 insertions, 2 deletions
diff --git a/ale_linters/python/pydocstyle.vim b/ale_linters/python/pydocstyle.vim
index ebf92bf1..177f5e0f 100644
--- a/ale_linters/python/pydocstyle.vim
+++ b/ale_linters/python/pydocstyle.vim
@@ -33,8 +33,7 @@ function! ale_linters#python#pydocstyle#Handle(buffer, lines) abort
" Matches patterns like the following:
" mydir/myfile.py:33 in public function `myfunction`:
" DXXX: Error description
- let l:fname = ale#Escape(fnamemodify(bufname(a:buffer), ':p:t'))
- let l:line1_pattern = '\v^' . l:fname . ':\s*(\d+)\s+.*$'
+ let l:line1_pattern = '\v^.*:\s*(\d+)\s+.*$'
let l:line2_pattern = '\v^.*([a-zA-Z]\d+):\s*(.*)$'
let l:output = []