summaryrefslogtreecommitdiff
path: root/test/linter/test_nix_statix.vader
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2023-09-16 22:22:01 +0100
committerw0rp <devw0rp@gmail.com>2023-09-16 22:23:30 +0100
commitae1d0515049ed135878672e06b51b083f5ae384d (patch)
tree1556645edaf786bc934be9cc8cc63408e65054d4 /test/linter/test_nix_statix.vader
parent4b11cf21dc8406b579b89e50ae3f08ef2c0856e1 (diff)
downloadale-ae1d0515049ed135878672e06b51b083f5ae384d.zip
#4454 Clean up more tests and code
* Remove some tests we no longer need * Delete blocks of redundant code * Compress some tests together to simplify them * Remove a little code for ancient linter versions * Escape more executables we didn't escape before * Rename a deno option that didn't match our conventions
Diffstat (limited to 'test/linter/test_nix_statix.vader')
-rw-r--r--test/linter/test_nix_statix.vader13
1 files changed, 4 insertions, 9 deletions
diff --git a/test/linter/test_nix_statix.vader b/test/linter/test_nix_statix.vader
index 8ee4c027..a6a389d5 100644
--- a/test/linter/test_nix_statix.vader
+++ b/test/linter/test_nix_statix.vader
@@ -4,16 +4,11 @@ Before:
After:
call ale#assert#TearDownLinterTest()
-Execute(The statix command should be correct):
+Execute(The default statix command should be correct):
AssertLinter 'statix', ale#Escape('statix') . ' check -o errfmt --stdin'
-Execute(Additional statix options should be configurable):
+Execute(The statix executable and options should be configurable):
+ let g:ale_nix_statix_check_executable = 'foo'
let g:ale_nix_statix_check_options = '--foobar'
- AssertLinter 'statix',
- \ ale#Escape('statix') . ' check -o errfmt --stdin --foobar'
-
-Execute(The statix command should be configurable):
- let g:ale_nix_statix_check_executable = 'foo/bar'
-
- AssertLinter 'foo/bar', ale#Escape('foo/bar') . ' check -o errfmt --stdin'
+ AssertLinter 'foo', ale#Escape('foo') . ' check -o errfmt --stdin --foobar'