summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorGuangqing Chen <hi@goushi.me>2022-09-08 16:04:17 +0800
committerGitHub <noreply@github.com>2022-09-08 17:04:17 +0900
commit477ad3fdd2df80a9dc479f974caeca1aa6ae640b (patch)
treeb35534cf63ef1765d51b64e28ad37223c8ce440a /test
parente99f262c2f2c75e686d0eae1b3749a546e6d7f00 (diff)
downloadale-477ad3fdd2df80a9dc479f974caeca1aa6ae640b.zip
Allow to pass options to the buf linter and fix callback. (#4300)
* Allow to pass options to the buf linter * Fix the callback of buf linter
Diffstat (limited to 'test')
-rw-r--r--test/linter/test_buf_lint.vader12
1 files changed, 11 insertions, 1 deletions
diff --git a/test/linter/test_buf_lint.vader b/test/linter/test_buf_lint.vader
index 7b8bb52c..2f065adc 100644
--- a/test/linter/test_buf_lint.vader
+++ b/test/linter/test_buf_lint.vader
@@ -11,7 +11,7 @@ Execute(The default command should be correct):
\ . ' lint'
\ . ' %s#include_package_files=true'
-Execute(The callback should include any additional options):
+Execute(The callback should include any additional config):
let b:ale_proto_buf_lint_executable = '/tmp/buf'
let b:ale_proto_buf_lint_config = '/tmp/buf.yaml'
@@ -20,3 +20,13 @@ Execute(The callback should include any additional options):
\ . ' lint'
\ . ' --config=' . ale#Escape('/tmp/buf.yaml')
\ . ' %s#include_package_files=true'
+
+Execute(The callback should include additional options):
+ let b:ale_proto_buf_lint_executable = '/tmp/buf'
+ let b:ale_proto_buf_lint_options = '--disable-symlinks'
+
+ AssertLinter '/tmp/buf',
+ \ ale#Escape('/tmp/buf')
+ \ . ' lint'
+ \ . ' --disable-symlinks'
+ \ . ' %s#include_package_files=true'