diff options
author | Carl Smedstad <carl.smedstad@protonmail.com> | 2022-11-21 11:50:45 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-21 19:50:45 +0900 |
commit | 6c4be47437707bd6e9afc6a09d7bfec15864f2d3 (patch) | |
tree | 92b63673d4472f413191d51ec4c7adc3a664b998 /test/linter | |
parent | ca355f4cb45ea3508548045ca7b9cc73f3741e69 (diff) | |
download | ale-6c4be47437707bd6e9afc6a09d7bfec15864f2d3.zip |
Implement support for SQL linter sqlfluff (#4361)
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' |