mirror of
https://github.com/dense-analysis/ale.git
synced 2026-10-17 11:31:26 +08:00
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.
This commit is contained in:
1 parent
8e03ceecdc
commit
e73f0f5cb3
3 files changed
+7
-6
No files matched your search
@@ -6,16 +6,16 @@ After:
|
||||
|
||||
Execute(The default command should be correct):
|
||||
if has('win32')
|
||||
AssertLinter 'bicep', ale#Escape('bicep') . ' build --outfile NUL %t'
|
||||
AssertLinter 'bicep', ale#Escape('bicep') . ' build --outfile NUL %s'
|
||||
else
|
||||
AssertLinter 'bicep', ale#Escape('bicep') . ' build --outfile /dev/null %t'
|
||||
AssertLinter 'bicep', ale#Escape('bicep') . ' build --outfile /dev/null %s'
|
||||
endif
|
||||
|
||||
Execute(The executable should be configurable):
|
||||
let g:ale_bicep_bicep_executable = 'foobar'
|
||||
|
||||
if has('win32')
|
||||
AssertLinter 'foobar', ale#Escape('foobar') . ' build --outfile NUL %t'
|
||||
AssertLinter 'foobar', ale#Escape('foobar') . ' build --outfile NUL %s'
|
||||
else
|
||||
AssertLinter 'foobar', ale#Escape('foobar') . ' build --outfile /dev/null %t'
|
||||
AssertLinter 'foobar', ale#Escape('foobar') . ' build --outfile /dev/null %s'
|
||||
endif
|
||||
Reference in new issue
Block a user