diff options
Diffstat (limited to 'test/linter')
-rw-r--r-- | test/linter/test_sql_sqlfluff.vader | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/test/linter/test_sql_sqlfluff.vader b/test/linter/test_sql_sqlfluff.vader new file mode 100644 index 00000000..9b474017 --- /dev/null +++ b/test/linter/test_sql_sqlfluff.vader @@ -0,0 +1,25 @@ +Before: + call ale#assert#SetUpLinterTest('sql', 'sqlfluff') + +After: + call ale#assert#TearDownLinterTest() + +Execute(The default command should be correct): + AssertLinter 'sqlfluff', + \ ale#Escape('sqlfluff') + \ . ' lint --dialect ansi --format json %t' + +Execute(The executable should be configurable): + let g:ale_sql_sqlfluff_executable = 'foobar' + + AssertLinter 'foobar', + \ ale#Escape('foobar') + \ . ' lint --dialect ansi --format json %t' + +Execute(Overriding options should work): + let g:ale_sql_sqlfluff_executable = 'foobar' + let g:ale_sql_sqlfluff_options = '--whatever' + + AssertLinter 'foobar', + \ ale#Escape('foobar') + \ . ' lint --dialect ansi --format json --whatever %t' |