mirror of
https://github.com/amix/vimrc
synced 2025-06-24 07:44:59 +08:00
Updated plugins
This commit is contained in:
@ -23,7 +23,9 @@ function! SyntaxCheckers_python_flake8_GetLocList() dict
|
||||
|
||||
let errorformat =
|
||||
\ '%E%f:%l: could not compile,%-Z%p^,' .
|
||||
\ '%A%f:%l:%c: %t%n: %m,' .
|
||||
\ '%A%f:%l:%c: %t%n %m,' .
|
||||
\ '%A%f:%l: %t%n: %m,' .
|
||||
\ '%A%f:%l: %t%n %m,' .
|
||||
\ '%-G%.%#'
|
||||
|
||||
@ -39,6 +41,7 @@ function! SyntaxCheckers_python_flake8_GetLocList() dict
|
||||
" F*** are PyFlakes codes
|
||||
" C*** are McCabe complexity messages
|
||||
" N*** are naming conventions from pep8-naming
|
||||
" H*** are OpenStack messages
|
||||
|
||||
if has_key(e, 'nr')
|
||||
let e['text'] .= printf(' [%s%03d]', e['type'], e['nr'])
|
||||
@ -50,11 +53,11 @@ function! SyntaxCheckers_python_flake8_GetLocList() dict
|
||||
call remove(e, 'nr')
|
||||
endif
|
||||
|
||||
if e['type'] =~? '\m^[CNW]'
|
||||
if e['type'] =~? '\m^[CHNW]'
|
||||
let e['subtype'] = 'Style'
|
||||
endif
|
||||
|
||||
let e['type'] = e['type'] =~? '\m^[EFC]' ? 'E' : 'W'
|
||||
let e['type'] = e['type'] =~? '\m^[EFHC]' ? 'E' : 'W'
|
||||
endfor
|
||||
|
||||
return loclist
|
||||
|
Reference in New Issue
Block a user