Merge pull request #491 from lcd047/master
Pylint output should be sorted
This commit is contained in:
commit
6cf4581d57
@ -23,7 +23,11 @@ function! SyntaxCheckers_python_pylint_GetLocList()
|
|||||||
let n -= 1
|
let n -= 1
|
||||||
endwhile
|
endwhile
|
||||||
|
|
||||||
return loclist
|
return sort(loclist, 's:CmpLoclist')
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
function! s:CmpLoclist(a, b)
|
||||||
|
return a:a['lnum'] - a:b['lnum']
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
call g:SyntasticRegistry.CreateAndRegisterChecker({
|
call g:SyntasticRegistry.CreateAndRegisterChecker({
|
||||||
|
Loading…
Reference in New Issue
Block a user