summaryrefslogtreecommitdiff
path: root/test/linter
diff options
context:
space:
mode:
authorCarl Smedstad <carl.smedstad@protonmail.com>2022-09-21 15:44:22 +0200
committerGitHub <noreply@github.com>2022-09-21 22:44:22 +0900
commite73f0f5cb3856b7a8bfa9c51d4bf40bca5553945 (patch)
tree6924e7ff560d85d1420e1fc874c19be14704e999 /test/linter
parent8e03ceecdc4151b6a85c004ce4ef699da0a1f57a (diff)
downloadale-e73f0f5cb3856b7a8bfa9c51d4bf40bca5553945.zip
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.
Diffstat (limited to 'test/linter')
-rw-r--r--test/linter/test_bicep_bicep.vader8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/linter/test_bicep_bicep.vader b/test/linter/test_bicep_bicep.vader
index 2beb2f22..a4057a72 100644
--- a/test/linter/test_bicep_bicep.vader
+++ b/test/linter/test_bicep_bicep.vader
@@ -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