File tree Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Expand file tree Collapse file tree 1 file changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -16,23 +16,20 @@ function! SyntaxCheckers_swift_swiftlint_IsAvailable() dict
16
16
endfunction
17
17
18
18
function ! SyntaxCheckers_swift_swiftlint_GetLocList () dict
19
- let env_vars = ' SCRIPT_INPUT_FILE_COUNT=1 SCRIPT_INPUT_FILE_0=' . syntastic#util#shexpand (' %:p' )
20
19
let makeprg = self .makeprgBuild ({
21
- \ ' exe_before' : env_vars,
22
- \ ' fname' : ' ' ,
23
- \ ' args' : ' lint --use-script-input-files' })
20
+ \ ' args' : ' lint --use-script-input-files' ,
21
+ \ ' fname' : ' ' })
24
22
25
23
let errorformat =
26
24
\ ' %f:%l:%c: %trror: %m,' .
27
25
\ ' %f:%l:%c: %tarning: %m,' .
28
26
\ ' %f:%l: %trror: %m,' .
29
27
\ ' %f:%l: %tarning: %m'
30
28
31
- let env = {}
32
- " let env = {
33
- " \ 'SCRIPT_INPUT_FILE_COUNT': 1,
34
- " \ 'SCRIPT_INPUT_FILE_0': syntastic#util#shexpand('%:p'),
35
- " \ }
29
+ let env = {
30
+ \ ' SCRIPT_INPUT_FILE_COUNT' : 1 ,
31
+ \ ' SCRIPT_INPUT_FILE_0' : expand (' %:p' ),
32
+ \ }
36
33
37
34
return SyntasticMake ({
38
35
\ ' makeprg' : makeprg ,
You can’t perform that action at this time.
0 commit comments