summaryrefslogtreecommitdiff
path: root/test/linter/test_sql_sqlfluff.vader
blob: 9b4740176eb13fd55a79e8c76c551a3102b7b996 (plain)
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'