From e73f0f5cb3856b7a8bfa9c51d4bf40bca5553945 Mon Sep 17 00:00:00 2001 From: Carl Smedstad Date: Wed, 21 Sep 2022 15:44:22 +0200 Subject: bicep: Lint files on disk instead of buffer (#4311) I discovered that references to other Bicep files (modules) will be broken if running on a temporary file in a different location. I've found no way of providing an alternate path when invoking the command. --- ale_linters/bicep/bicep.vim | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ale_linters/bicep') diff --git a/ale_linters/bicep/bicep.vim b/ale_linters/bicep/bicep.vim index 5796f83e..91cc1986 100644 --- a/ale_linters/bicep/bicep.vim +++ b/ale_linters/bicep/bicep.vim @@ -26,7 +26,7 @@ function! ale_linters#bicep#bicep#Command(buffer) abort \ . l:nullfile \ . ' ' \ . l:options - \ . ' %t' + \ . ' %s' endfunction function! ale_linters#bicep#bicep#Handle(buffer, lines) abort @@ -60,4 +60,5 @@ call ale#linter#Define('bicep', { \ 'command': function('ale_linters#bicep#bicep#Command'), \ 'callback': 'ale_linters#bicep#bicep#Handle', \ 'output_stream': 'both', +\ 'lint_file': 1, \}) -- cgit v1.2.3