Solving no docs found for member gjslint on VIM Syntastic


Closure Linter (gjslint) is pretty powerfull for checking our javascript code. If you using VIM, then you should consider using Syntastic plugin which is incredibly.

By default, Syntastic will detecting Gjslint, Jslint, JSHint and Javascriptlint in our system. Every editing and saving a JS file, syntastic will do several javascript checker.

Today, i found “no docs found for member” error which it comes from Closure Linter. This is happen because i don’t create JSDoc Annotation in my code. JSDoc is useful for auto-complete on several IDE. But, sometimes people don’t need it.

To disable it, you can use “–nojsdoc” when running gjslint.

In syntastic/syntax_checker/javascript.vim, you can change this line :

1
let makeprg = "gjslint" . gjslintconf . " –nosummary –unix_mode –nodebug_indentation –nobeep " . shellescape(expand(‘%’))

into

1
let makeprg = "gjslint" . gjslintconf . " –nojsdoc –nosummary –unix_mode –nodebug_indentation –nobeep " . shellescape(expand(‘%’))

And it’s mean “no docs found for member” will disappear.

Updated!
From Rajaram Mallya :

1
let g:syntastic_gjslint_conf=" –nojsdoc"

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.