Checker coffee/coffee_jshint: cleanup.

This commit is contained in:
LCD 47 2017-06-18 10:33:06 +03:00
parent 2f5c910ff6
commit 1c80cbd4b0
4 changed files with 33 additions and 29 deletions

View File

@ -1614,8 +1614,8 @@ SYNTAX CHECKERS FOR COFFEESCRIPT *syntastic-checkers-coffee*
The following checkers are available for CoffeeScript (filetype "coffee"): The following checkers are available for CoffeeScript (filetype "coffee"):
1. Coffee...................|syntastic-coffee-coffee| 1. Coffee...................|syntastic-coffee-coffee|
2. CoffeeLint...............|syntastic-coffee-coffeelint| 2. Coffee->JSHint...........|syntastic-coffee-coffee_jshint|
3. coffee_jshint............|syntastic-coffee-coffee-jshint| 3. CoffeeLint...............|syntastic-coffee-coffeelint|
------------------------------------------------------------------------------ ------------------------------------------------------------------------------
1. Coffee *syntastic-coffee-coffee* 1. Coffee *syntastic-coffee-coffee*
@ -1635,7 +1635,28 @@ This checker is initialised using the "makeprgBuild()" function and thus it
accepts the standard options described at |syntastic-config-makeprg|. accepts the standard options described at |syntastic-config-makeprg|.
------------------------------------------------------------------------------ ------------------------------------------------------------------------------
2. CoffeeLint *syntastic-coffee-coffeelint* 2. Coffee->JSHint *syntastic-coffee-coffee_jshint*
Name: coffee_jshint
Maintainer: John Krauss <john@johnkrauss.com>
"Coffee->JSHint" is a JSHint validator for CoffeeScript. See the project's
page at GitHub for details:
https://github.com/marviq/coffee-jshint
Installation~
Install it with "npm": >
npm install -g coffee-jshint
<
Checker options~
This checker is initialised using the "makeprgBuild()" function and thus it
Accepts the standard options described at |syntastic-config-makeprg|.
------------------------------------------------------------------------------
3. CoffeeLint *syntastic-coffee-coffeelint*
Name: coffeelint Name: coffeelint
Maintainer: Lincoln Stoll <l@lds.li> Maintainer: Lincoln Stoll <l@lds.li>
@ -1650,22 +1671,6 @@ Checker options~
This checker is initialised using the "makeprgBuild()" function and thus it This checker is initialised using the "makeprgBuild()" function and thus it
accepts the standard options described at |syntastic-config-makeprg|. accepts the standard options described at |syntastic-config-makeprg|.
------------------------------------------------------------------------------
2. coffee-jshint *syntastic-coffee-coffee-jshint*
Name: coffee-jshint
Maintainer: John Krauss <john@johnkrauss.com>
"coffee-jshint" is a JSHint validator for CoffeeScript. See the project's page
for details:
https://github.com/marviq/coffee-jshint
Checker options~
This checker is initialised using the "makeprgBuild()" function and thus it
Accepts the standard options described at |syntastic-config-makeprg|.
============================================================================== ==============================================================================
SYNTAX CHECKERS FOR COQ *syntastic-checkers-coq* SYNTAX CHECKERS FOR COQ *syntastic-checkers-coq*

View File

@ -19,7 +19,7 @@ if has('reltime')
lockvar! g:_SYNTASTIC_START lockvar! g:_SYNTASTIC_START
endif endif
let g:_SYNTASTIC_VERSION = '3.8.0-56' let g:_SYNTASTIC_VERSION = '3.8.0-58'
lockvar g:_SYNTASTIC_VERSION lockvar g:_SYNTASTIC_VERSION
" Sanity checks {{{1 " Sanity checks {{{1

View File

@ -22,7 +22,7 @@ let s:_DEFAULT_CHECKERS = {
\ 'cmake': ['cmakelint'], \ 'cmake': ['cmakelint'],
\ 'co': ['coco'], \ 'co': ['coco'],
\ 'cobol': ['cobc'], \ 'cobol': ['cobc'],
\ 'coffee': ['coffee', 'coffeelint', 'coffee_jshint'], \ 'coffee': ['coffee', 'coffeelint'],
\ 'coq': ['coqtop'], \ 'coq': ['coqtop'],
\ 'cpp': ['gcc'], \ 'cpp': ['gcc'],
\ 'cs': ['mcs'], \ 'cs': ['mcs'],

View File

@ -1,6 +1,6 @@
"============================================================================ "============================================================================
"File: coffee-jshint.vim "File: coffee_jshint.vim
"Description: Syntax checking plugin for syntastic.vim "Description: Syntax checking plugin for syntastic
"Maintainer: John Krauss <john@johnkrauss.com> "Maintainer: John Krauss <john@johnkrauss.com>
"License: This program is free software. It comes without any warranty, "License: This program is free software. It comes without any warranty,
" to the extent permitted by applicable law. You can redistribute " to the extent permitted by applicable law. You can redistribute
@ -22,21 +22,20 @@ function! SyntaxCheckers_coffee_coffee_jshint_GetLocList() dict
let makeprg = self.makeprgBuild({}) let makeprg = self.makeprgBuild({})
let errorformat = let errorformat =
\ '--------------------------------,' . \ '%Q-%\{32\,},' .
\ '%+P%f,' . \ '%E%l:%c: %m,' .
\ '%l:%c: %m,' . \ '%P%f'
\ '%-Q'
return SyntasticMake({ return SyntasticMake({
\ 'makeprg': makeprg, \ 'makeprg': makeprg,
\ 'errorformat': errorformat, \ 'errorformat': errorformat,
\ 'returns': [0, 1]}) \ 'returns': [0, 1] })
endfunction endfunction
call g:SyntasticRegistry.CreateAndRegisterChecker({ call g:SyntasticRegistry.CreateAndRegisterChecker({
\ 'filetype': 'coffee', \ 'filetype': 'coffee',
\ 'exec': 'coffee-jshint', \ 'exec': 'coffee-jshint',
\ 'name': 'coffee_jshint'}) \ 'name': 'coffee_jshint' })
let &cpo = s:save_cpo let &cpo = s:save_cpo
unlet s:save_cpo unlet s:save_cpo