mirror of
https://github.com/dense-analysis/ale.git
synced 2026-10-13 16:38:57 +08:00
Complain about incorrect uses of expand('%...')
This commit is contained in:
1 parent
d41f15bcbc
commit
a0e0408ecc
3 files changed
+6
-2
No files matched your search
@@ -6,7 +6,9 @@ if !exists('g:ale_go_gometalinter_options')
|
||||
endif
|
||||
|
||||
function! ale_linters#go#gometalinter#GetCommand(buffer) abort
|
||||
return 'gometalinter --include=''^' . expand('%:p') . '.*$'' '
|
||||
let l:filename = expand('#' . a:buffer . ':p')
|
||||
|
||||
return 'gometalinter --include=''^' . l:filename . '.*$'' '
|
||||
\ . ale#Var(a:buffer, 'go_gometalinter_options')
|
||||
\ . ' ' . ale#Escape(fnamemodify(bufname(a:buffer), ':p:h'))
|
||||
endfunction
|
||||
|
||||
Reference in new issue
Block a user