From 8fbcba0091161fb537adf1dfc87555fd79e52eaf Mon Sep 17 00:00:00 2001 From: Horacio Sanson Date: Wed, 27 Nov 2019 23:19:44 +0900 Subject: Fix 2913 - checkstyle config file ignored. If checkstyle is configured with custom options that contain "-c" then the checkstyle config file option is ignored. This PR modifies the regular expression when creating the checkstyle command to avoid this. --- test/command_callback/test_checkstyle_command_callback.vader | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/command_callback') diff --git a/test/command_callback/test_checkstyle_command_callback.vader b/test/command_callback/test_checkstyle_command_callback.vader index 7a9f26b3..5824df87 100644 --- a/test/command_callback/test_checkstyle_command_callback.vader +++ b/test/command_callback/test_checkstyle_command_callback.vader @@ -20,11 +20,11 @@ Execute(The checkstyle executable should be configurable): \ . ' %s' Execute(Custom options should be supported): - let b:ale_java_checkstyle_options = '--foobar' + let b:ale_java_checkstyle_options = '--foobar -cp -classpath /path/to/checkstyle-8.7-all.jar' AssertLinter 'checkstyle', \ ale#Escape('checkstyle') - \ . ' --foobar' + \ . ' --foobar -cp -classpath /path/to/checkstyle-8.7-all.jar' \ . ' -c ' . ale#Escape('/google_checks.xml') \ . ' %s' -- cgit v1.2.3 From 7b9855f1fe811f4ec80bdeb81b5ab9b6d9249a49 Mon Sep 17 00:00:00 2001 From: Horacio Sanson Date: Mon, 23 Mar 2020 12:18:35 +0900 Subject: Fix 2732 - Add bashate support --- test/command_callback/test_bashate_command_callback.vader | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 test/command_callback/test_bashate_command_callback.vader (limited to 'test/command_callback') diff --git a/test/command_callback/test_bashate_command_callback.vader b/test/command_callback/test_bashate_command_callback.vader new file mode 100644 index 00000000..714cf690 --- /dev/null +++ b/test/command_callback/test_bashate_command_callback.vader @@ -0,0 +1,15 @@ +Before: + call ale#assert#SetUpLinterTest('sh', 'bashate') + call ale#test#SetFilename('test.sh') + +After: + call ale#assert#TearDownLinterTest() + +Execute(The default bashate command should be correct): + AssertLinter 'bashate', ale#Escape('bashate') . ' %t' + +Execute(The bashate command should accept options): + let b:ale_sh_bashate_options = '-i E310 --max-line-length 100' + + AssertLinter 'bashate', + \ ale#Escape('bashate') . ' -i E310 --max-line-length 100 %t' -- cgit v1.2.3 From 23c58e63d426770cf3233553450acfdcd3a73525 Mon Sep 17 00:00:00 2001 From: Sheheryar Parvaz Date: Fri, 10 Jul 2020 20:14:12 -0400 Subject: Support zls language server for zig --- test/command_callback/test_zig_zls_callbacks.vader | 15 +++++++++++++++ test/command_callback/zig-zls-project/build.zig | 0 2 files changed, 15 insertions(+) create mode 100644 test/command_callback/test_zig_zls_callbacks.vader create mode 100644 test/command_callback/zig-zls-project/build.zig (limited to 'test/command_callback') diff --git a/test/command_callback/test_zig_zls_callbacks.vader b/test/command_callback/test_zig_zls_callbacks.vader new file mode 100644 index 00000000..6e42cc4b --- /dev/null +++ b/test/command_callback/test_zig_zls_callbacks.vader @@ -0,0 +1,15 @@ +Before: + call ale#assert#SetUpLinterTest('zig', 'zls') + +After: + call ale#assert#TearDownLinterTest() + +Execute(The default executable path should be correct): + AssertLinter 'zls', ale#Escape('zls') + +Execute(The project root should be detected correctly): + AssertLSPProject '' + + call ale#test#SetFilename('zig-zls-project/main.zig') + + AssertLSPProject ale#path#Simplify(g:dir . '/zig-zls-project') diff --git a/test/command_callback/zig-zls-project/build.zig b/test/command_callback/zig-zls-project/build.zig new file mode 100644 index 00000000..e69de29b -- cgit v1.2.3