Update swiftlint syntastic plugin

A while ago I fixed being able to have numbers in env vars in syntastic,
so this now works as expected.
This commit is contained in:
Keith Smiley
2017-01-19 18:26:17 -08:00
parent 080a5cd54b
commit 06ece0e81e

View File

@@ -16,11 +16,9 @@ function! SyntaxCheckers_swift_swiftlint_IsAvailable() dict
endfunction
function! SyntaxCheckers_swift_swiftlint_GetLocList() dict
let env_vars = 'SCRIPT_INPUT_FILE_COUNT=1 SCRIPT_INPUT_FILE_0=' . syntastic#util#shexpand('%:p')
let makeprg = self.makeprgBuild({
\ 'exe_before': env_vars,
\ 'fname': '',
\ 'args': 'lint --use-script-input-files' })
\ 'args': 'lint --use-script-input-files',
\ 'fname': '' })
let errorformat =
\ '%f:%l:%c: %trror: %m,' .
@@ -28,11 +26,10 @@ function! SyntaxCheckers_swift_swiftlint_GetLocList() dict
\ '%f:%l: %trror: %m,' .
\ '%f:%l: %tarning: %m'
let env = {}
" let env = {
" \ 'SCRIPT_INPUT_FILE_COUNT': 1,
" \ 'SCRIPT_INPUT_FILE_0': syntastic#util#shexpand('%:p'),
" \ }
let env = {
\ 'SCRIPT_INPUT_FILE_COUNT': 1,
\ 'SCRIPT_INPUT_FILE_0': expand('%:p'),
\ }
return SyntasticMake({
\ 'makeprg': makeprg,