add a function to get the active checker names for a filetype

This commit is contained in:
Martin Grenfell 2013-02-09 17:49:01 +00:00
parent df9ca84a22
commit 924cf68c2e

View File

@ -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