2017-07-26 09:29:46 +00:00
|
|
|
Before:
|
2018-07-15 17:24:53 +00:00
|
|
|
call ale#assert#SetUpLinterTest('scala', 'scalac')
|
2017-07-26 09:29:46 +00:00
|
|
|
|
|
|
|
After:
|
2018-07-15 17:24:53 +00:00
|
|
|
call ale#assert#TearDownLinterTest()
|
2017-07-26 09:29:46 +00:00
|
|
|
|
|
|
|
Given scala(An empty Scala file):
|
|
|
|
Execute(The default executable and command should be correct):
|
2018-12-03 20:39:10 +00:00
|
|
|
AssertLinter 'scalac', ale#Escape('scalac') . ' -Ystop-after:parser %t'
|
2017-07-26 09:29:46 +00:00
|
|
|
|
|
|
|
Given scala.sbt(An empty SBT file):
|
|
|
|
Execute(scalac should not be run for sbt files):
|
2018-08-02 22:44:12 +00:00
|
|
|
AssertLinterNotExecuted
|