2017-04-05 17:21:47 +00:00
|
|
|
Before:
|
|
|
|
let g:ale_chef_foodcritic_options = '-t ~F011'
|
|
|
|
let g:ale_chef_foodcritic_executable = 'foodcritic'
|
|
|
|
|
2017-07-09 21:43:25 +00:00
|
|
|
call ale#test#SetDirectory('/testplugin/test')
|
2017-04-05 17:21:47 +00:00
|
|
|
runtime ale_linters/chef/foodcritic.vim
|
|
|
|
|
|
|
|
After:
|
|
|
|
let g:ale_chef_foodcritic_options = ''
|
|
|
|
let g:ale_chef_foodcritic_executable = ''
|
|
|
|
|
2017-07-09 21:43:25 +00:00
|
|
|
call ale#test#RestoreDirectory()
|
2017-04-05 17:21:47 +00:00
|
|
|
call ale#linter#Reset()
|
|
|
|
|
|
|
|
Execute(command line should be assembled correctly):
|
|
|
|
AssertEqual
|
|
|
|
\ 'foodcritic -t \~F011 %t',
|
|
|
|
\ ale_linters#chef#foodcritic#GetCommand(bufnr(''))
|