2017-07-08 17:37:21 +00: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 22:26:50 +00:00
|
|
|
\ 'jscs',
|
|
|
|
\ ale_linters#javascript#jscs#GetExecutable(bufnr(''))
|
2017-07-08 17:37:21 +00:00
|
|
|
AssertEqual
|
2017-10-08 22:26:50 +00:00
|
|
|
\ ale#Escape('jscs') . ' --reporter inline --no-colors -',
|
|
|
|
\ ale_linters#javascript#jscs#GetCommand(bufnr(''))
|
2017-07-08 17:37:21 +00:00
|
|
|
|
|
|
|
|
|
|
|
Execute(Should allow using a custom executable):
|
|
|
|
let g:ale_javascript_jscs_executable = 'foobar'
|
|
|
|
|
|
|
|
AssertEqual
|
2017-10-08 22:26:50 +00:00
|
|
|
\ 'foobar',
|
|
|
|
\ ale_linters#javascript#jscs#GetExecutable(bufnr(''))
|
2017-07-08 17:37:21 +00:00
|
|
|
AssertEqual
|
2017-10-08 22:26:50 +00:00
|
|
|
\ ale#Escape('foobar') . ' --reporter inline --no-colors -',
|
|
|
|
\ ale_linters#javascript#jscs#GetCommand(bufnr(''))
|