Checker flake8: allow OpenStack conventions.

This commit is contained in:
LCD 47 2017-08-31 21:19:06 +03:00
parent 7dec59738b
commit f1a9b153bd
2 changed files with 5 additions and 3 deletions

View File

@ -19,7 +19,7 @@ if has('reltime')
lockvar! g:_SYNTASTIC_START
endif
let g:_SYNTASTIC_VERSION = '3.8.0-69'
let g:_SYNTASTIC_VERSION = '3.8.0-70'
lockvar g:_SYNTASTIC_VERSION
" Sanity checks {{{1

View File

@ -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%.%#'
@ -50,11 +52,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