2017-07-08 13:37:21 -04:00
|
|
|
Before:
|
|
|
|
runtime ale_linters/javascript/jscs.vim
|
|
|
|
|
|
|
|
After:
|
|
|
|
call ale#linter#Reset()
|
|
|
|
let g:ale_javascript_jscs_executable = 'jscs'
|
|
|
|
|
|
|
|
Execute(Should return the correct default values):
|
|
|
|
AssertEqual
|
2017-10-08 18:26:50 -04:00
|
|
|
\ 'jscs',
|
|
|
|
\ ale_linters#javascript#jscs#GetExecutable(bufnr(''))
|
2017-07-08 13:37:21 -04:00
|
|
|
AssertEqual
|
2017-10-08 18:26:50 -04:00
|
|
|
\ ale#Escape('jscs') . ' --reporter inline --no-colors -',
|
|
|
|
\ ale_linters#javascript#jscs#GetCommand(bufnr(''))
|
2017-07-08 13:37:21 -04:00
|
|
|
|
|
|
|
|
|
|
|
Execute(Should allow using a custom executable):
|
|
|
|
let g:ale_javascript_jscs_executable = 'foobar'
|
|
|
|
|
|
|
|
AssertEqual
|
2017-10-08 18:26:50 -04:00
|
|
|
\ 'foobar',
|
|
|
|
\ ale_linters#javascript#jscs#GetExecutable(bufnr(''))
|
2017-07-08 13:37:21 -04:00
|
|
|
AssertEqual
|
2017-10-08 18:26:50 -04:00
|
|
|
\ ale#Escape('foobar') . ' --reporter inline --no-colors -',
|
|
|
|
\ ale_linters#javascript#jscs#GetCommand(bufnr(''))
|