Checker flake8: allow OpenStack conventions.
This commit is contained in:
parent
7dec59738b
commit
f1a9b153bd
@ -19,7 +19,7 @@ if has('reltime')
|
|||||||
lockvar! g:_SYNTASTIC_START
|
lockvar! g:_SYNTASTIC_START
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let g:_SYNTASTIC_VERSION = '3.8.0-69'
|
let g:_SYNTASTIC_VERSION = '3.8.0-70'
|
||||||
lockvar g:_SYNTASTIC_VERSION
|
lockvar g:_SYNTASTIC_VERSION
|
||||||
|
|
||||||
" Sanity checks {{{1
|
" Sanity checks {{{1
|
||||||
|
@ -23,7 +23,9 @@ function! SyntaxCheckers_python_flake8_GetLocList() dict
|
|||||||
|
|
||||||
let errorformat =
|
let errorformat =
|
||||||
\ '%E%f:%l: could not compile,%-Z%p^,' .
|
\ '%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:%c: %t%n %m,' .
|
||||||
|
\ '%A%f:%l: %t%n: %m,' .
|
||||||
\ '%A%f:%l: %t%n %m,' .
|
\ '%A%f:%l: %t%n %m,' .
|
||||||
\ '%-G%.%#'
|
\ '%-G%.%#'
|
||||||
|
|
||||||
@ -50,11 +52,11 @@ function! SyntaxCheckers_python_flake8_GetLocList() dict
|
|||||||
call remove(e, 'nr')
|
call remove(e, 'nr')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if e['type'] =~? '\m^[CNW]'
|
if e['type'] =~? '\m^[CHNW]'
|
||||||
let e['subtype'] = 'Style'
|
let e['subtype'] = 'Style'
|
||||||
endif
|
endif
|
||||||
|
|
||||||
let e['type'] = e['type'] =~? '\m^[EFC]' ? 'E' : 'W'
|
let e['type'] = e['type'] =~? '\m^[EFHC]' ? 'E' : 'W'
|
||||||
endfor
|
endfor
|
||||||
|
|
||||||
return loclist
|
return loclist
|
||||||
|
Loading…
x
Reference in New Issue
Block a user