mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-06 12:44:23 +08:00
Working directories are now set seperately from the commands so they can later be swapped out when running linters over projects is supported, and also better support filename mapping for running linters on other machines in future.
14 lines
357 B
Plaintext
14 lines
357 B
Plaintext
Before:
|
|
call ale#assert#SetUpLinterTest('haskell', 'cabal_ghc')
|
|
|
|
After:
|
|
call ale#assert#TearDownLinterTest()
|
|
|
|
Execute(The options should be used in the command):
|
|
AssertLinterCwd '%s:h'
|
|
AssertLinter 'cabal', 'cabal exec -- ghc -fno-code -v0 %t'
|
|
|
|
let b:ale_haskell_cabal_ghc_options = 'foobar'
|
|
|
|
AssertLinter 'cabal', 'cabal exec -- ghc foobar %t'
|