mirror of https://github.com/dense-analysis/ale
27 lines
536 B
Plaintext
27 lines
536 B
Plaintext
|
Before:
|
||
|
let g:ale_chef_foodcritic_options = '-t ~F011'
|
||
|
let g:ale_chef_foodcritic_executable = 'foodcritic'
|
||
|
|
||
|
silent! cd /testplugin/test
|
||
|
let g:dir = getcwd()
|
||
|
|
||
|
runtime ale_linters/chef/foodcritic.vim
|
||
|
|
||
|
After:
|
||
|
let g:ale_chef_foodcritic_options = ''
|
||
|
let g:ale_chef_foodcritic_executable = ''
|
||
|
|
||
|
silent execute 'cd ' . g:dir
|
||
|
unlet! g:dir
|
||
|
|
||
|
call ale#linter#Reset()
|
||
|
|
||
|
Execute(command line should be assembled correctly):
|
||
|
|
||
|
AssertEqual
|
||
|
\ 'foodcritic -t \~F011 %t',
|
||
|
\ ale_linters#chef#foodcritic#GetCommand(bufnr(''))
|
||
|
|
||
|
:q
|
||
|
|