add a function to get the active checker names for a filetype
This commit is contained in:
parent
df9ca84a22
commit
924cf68c2e
@ -73,6 +73,11 @@ function! g:SyntasticRegistry.getActiveCheckers(filetype)
|
|||||||
return []
|
return []
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
function! g:SyntasticRegistry.getActiveCheckerNames(filetype)
|
||||||
|
let checkers = self.getActiveCheckers(a:filetype)
|
||||||
|
return join(map(checkers, 'v:val.name()'))
|
||||||
|
endfunction
|
||||||
|
|
||||||
function! g:SyntasticRegistry.getChecker(filetype, name)
|
function! g:SyntasticRegistry.getChecker(filetype, name)
|
||||||
for checker in self.availableCheckersFor(a:filetype)
|
for checker in self.availableCheckersFor(a:filetype)
|
||||||
if checker.name() == a:name
|
if checker.name() == a:name
|
||||||
|
Loading…
Reference in New Issue
Block a user