File: test_sql_sqlfluff.vader

package info (click to toggle)
vim-ale 3.3.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 8,408 kB
  • sloc: sh: 497; python: 311; perl: 31; makefile: 4; javascript: 1
file content (25 lines) | stat: -rw-r--r-- 715 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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'