Merge remote-tracking branch 'brendanjerwin/master'
This commit is contained in:
commit
18364490b0
@ -26,16 +26,22 @@ function! SyntaxCheckers_coffee_GetLocList()
|
||||
|
||||
let coffee_results = SyntasticMake({ 'makeprg': makeprg, 'errorformat': errorformat })
|
||||
|
||||
let lint_results = []
|
||||
if !empty(coffee_results)
|
||||
return coffee_results
|
||||
endif
|
||||
|
||||
|
||||
if executable("coffeelint")
|
||||
let lint_options = ''
|
||||
if(exists('g:coffee_lint_options'))
|
||||
let lint_options = g:coffee_lint_options
|
||||
endif
|
||||
|
||||
let coffeelint = 'coffeelint --csv '.lint_options.' '.shellescape(expand('%'))
|
||||
echo coffeelint
|
||||
let lint_results = SyntasticMake({ 'makeprg': coffeelint, 'errorformat': '%f\,%l\,error\,%m' })
|
||||
let lint_results = SyntasticMake({ 'makeprg': coffeelint, 'errorformat': '%f\,%l\,%trror\,%m', 'subtype': 'Style' })
|
||||
|
||||
return lint_results
|
||||
endif
|
||||
|
||||
return coffee_results + lint_results
|
||||
return []
|
||||
endfunction
|
||||
|
Loading…
x
Reference in New Issue
Block a user