2017-07-26 05:29:46 -04:00
|
|
|
Before:
|
2017-11-15 12:21:17 -05:00
|
|
|
runtime ale_linters/scala/scalac.vim
|
2017-07-26 05:29:46 -04:00
|
|
|
|
|
|
|
After:
|
2017-11-15 12:21:17 -05:00
|
|
|
call ale#linter#Reset()
|
2017-07-26 05:29:46 -04:00
|
|
|
|
|
|
|
Given scala(An empty Scala file):
|
|
|
|
|
|
|
|
Execute(The default executable and command should be correct):
|
|
|
|
AssertEqual 'scalac', ale_linters#scala#scalac#GetExecutable(bufnr(''))
|
|
|
|
AssertEqual
|
|
|
|
\ ale#Escape('scalac') . ' -Ystop-after:parser %t',
|
|
|
|
\ ale_linters#scala#scalac#GetCommand(bufnr(''))
|
|
|
|
|
|
|
|
Given scala.sbt(An empty SBT file):
|
|
|
|
Execute(scalac should not be run for sbt files):
|
|
|
|
AssertEqual '', ale_linters#scala#scalac#GetExecutable(bufnr(''))
|
|
|
|
AssertEqual '', ale_linters#scala#scalac#GetCommand(bufnr(''))
|