add google closure linter support
This commit is contained in:
parent
88dbca87c8
commit
3574ac167b
@ -16,6 +16,26 @@ if exists("loaded_javascript_syntax_checker")
|
|||||||
endif
|
endif
|
||||||
let loaded_javascript_syntax_checker = 1
|
let loaded_javascript_syntax_checker = 1
|
||||||
|
|
||||||
|
" Use google's gjslint if the user has it installed
|
||||||
|
if executable("gjslint")
|
||||||
|
if !exists("g:syntastic_gjslint_conf")
|
||||||
|
let g:syntastic_gjslint_conf = ""
|
||||||
|
endif
|
||||||
|
|
||||||
|
function! SyntaxCheckers_javascript_GetLocList()
|
||||||
|
if empty(g:syntastic_gjslint_conf)
|
||||||
|
let gjslintconf = ""
|
||||||
|
else
|
||||||
|
let gjslintconf = g:syntastic_gjslint_conf
|
||||||
|
endif
|
||||||
|
let makeprg = "gjslint" . gjslintconf . " --nosummary --unix_mode --nodebug_indentation --nobeep " . shellescape(expand('%'))
|
||||||
|
let errorformat="%f:%l:(%n)\ %m,%-G1 files checked, no errors found.,%-G%.%#"
|
||||||
|
return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat })
|
||||||
|
endfunction
|
||||||
|
" We're using google gjslint, finished.
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
|
||||||
" Use node jslint if the user has it installed
|
" Use node jslint if the user has it installed
|
||||||
if executable("jslint")
|
if executable("jslint")
|
||||||
if !exists("g:syntastic_jslint_conf")
|
if !exists("g:syntastic_jslint_conf")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user