mirror of
https://github.com/dense-analysis/ale
synced 2024-12-28 09:02:24 +00:00
912f632bf5
* Add fsc as a Scala linter * Pull reused code into `autoload/ale/` directory * Include fsc into the README * Add unit test for testing the scala handler * Add unit test for scala's fsc linter * Rename scala unit tests for clarity * Fix typo in README * Fix typos in doc/ale.txt * Fix author headline * Put methods for fsc commands back into fsc.vim * Move command_callback tests to correct location * Rewrite handler test so it actually tests handler * Clarify description of test in test_scala_handler
18 lines
591 B
Plaintext
18 lines
591 B
Plaintext
Before:
|
|
runtime ale_linters/scala/scalac.vim
|
|
|
|
After:
|
|
call ale#linter#Reset()
|
|
|
|
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(''))
|