mirror of
https://github.com/dense-analysis/ale
synced 2024-12-26 08:02:25 +00:00
26 lines
714 B
Plaintext
26 lines
714 B
Plaintext
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
|
|
\ 'jscs',
|
|
\ ale_linters#javascript#jscs#GetExecutable(bufnr(''))
|
|
AssertEqual
|
|
\ ale#Escape('jscs') . ' --reporter inline --no-colors -',
|
|
\ ale_linters#javascript#jscs#GetCommand(bufnr(''))
|
|
|
|
|
|
Execute(Should allow using a custom executable):
|
|
let g:ale_javascript_jscs_executable = 'foobar'
|
|
|
|
AssertEqual
|
|
\ 'foobar',
|
|
\ ale_linters#javascript#jscs#GetExecutable(bufnr(''))
|
|
AssertEqual
|
|
\ ale#Escape('foobar') . ' --reporter inline --no-colors -',
|
|
\ ale_linters#javascript#jscs#GetCommand(bufnr(''))
|