Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

Commit

Permalink
add closure linter
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Wolfe committed Nov 2, 2011
1 parent 6b0f747 commit b7e3031
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions syntax_checkers/javascript.vim
Expand Up @@ -29,8 +29,18 @@ if executable("jsl")
let jslconf = " -conf " . g:syntastic_jsl_conf
endif
"makeprg syntax for jsl svn as of 08/21/2010
let makeprg = "jsl" . jslconf . "--nologo --nofilelisting --nosummary --nosummary --conf=$HOME/.jslrc ".shellescape(expand('%'))
let errorformat='%W%f(%l): lint warning: %m,%-Z%p^,%W%f(%l): warning: %m,%-Z%p^,%E%f(%l): SyntaxError: %m,%-Z%p^,%-G'
"let makeprg = "jsl " . jslconf . "--nologo --nofilelisting --nosummary --conf=$HOME/.jslrc ".shellescape(expand('%'))
"let errorformat='%W%f(%l): lint warning: %m,%-Z%p^,%W%f(%l): warning: %m,%-Z%p^,%E%f(%l): SyntaxError: %m,%-Z%p^,%-G'
"makeprg for closure lint
"let makeprg = "gjslint --nojsdoc --nobeep --unix_mode ".shellescape(expand('%'))

"let errorformat='%f:%l:(%n) %m,%-GFound %.%#,%-G,%-GSome %.%#,%-Gfixjsstyle. %.%#,%-Gscript %.%#,%-Gfixjsstyle %.%#,%-G1 files checked\, %.%#'
"makeprg for myjsl combined
let makeprg = "myjsl ".shellescape(expand('%'))

"let errorformat='%f:%l:(%n) %m,%-GFound %.%#,%-G,%-GSome %.%#,%-Gfixjsstyle. %.%#,%-Gscript %.%#,%-Gfixjsstyle %.%#,%-G1 files checked\, %.%#'
let errorformat='%W%f(%l): lint warning: %m,%-Z%p^,%W%f(%l): warning: %m,%-Z%p^,%E%f(%l): SyntaxError: %m,%-Z%p^,%-G,%f:%l:(%n) %m,%-GFound %.%#,%-GSome %.%#,%-Gfixjsstyle. %.%#,%-Gscript %.%#,%-Gfixjsstyle %.%#,%-G1 files checked\, %.%#'

return SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat })
endfunction
" We're using jsl, finished.
Expand Down

0 comments on commit b7e3031

Please sign in to comment.