Pylama: pep8, pep257, and mccabe are style checkers.
This commit is contained in:
parent
4b9bf4405b
commit
ba0f349dbf
@ -38,6 +38,9 @@ function! SyntaxCheckers_python_pylama_GetLocList()
|
|||||||
|
|
||||||
for n in range(len(loclist))
|
for n in range(len(loclist))
|
||||||
let loclist[n]['type'] = match(['R', 'C', 'W'], loclist[n]['text'][0]) >= 0 ? 'W' : 'E'
|
let loclist[n]['type'] = match(['R', 'C', 'W'], loclist[n]['text'][0]) >= 0 ? 'W' : 'E'
|
||||||
|
if loclist[n]['text'] =~# '\v\[%(pep8|pep257|mccabe)\]$'
|
||||||
|
let loclist[n]['subtype'] = 'Style'
|
||||||
|
endif
|
||||||
endfor
|
endfor
|
||||||
|
|
||||||
return loclist
|
return loclist
|
||||||
|
Loading…
x
Reference in New Issue
Block a user