summaryrefslogtreecommitdiff
path: root/ale_linters/python
diff options
context:
space:
mode:
authorw0rp <w0rp@users.noreply.github.com>2019-01-27 11:01:14 +0000
committerGitHub <noreply@github.com>2019-01-27 11:01:14 +0000
commitf03370e1833cb200c43368eb22d930f3d76d56fc (patch)
tree9599c8b0c9ee4b943d66b749b551743192361288 /ale_linters/python
parentd882c434a1c8f3814da51340a38fdcd5659e76bd (diff)
parent86af4be0d0ca484c8549ea331f07732680784cd9 (diff)
downloadale-f03370e1833cb200c43368eb22d930f3d76d56fc.zip
Merge pull request #2207 from pmacosta/master
Fixed parsing of pydocstyle errors
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 = []