mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-21 11:41:15 +08:00
Upgrade Elm linter to support 0.19 error reports
This commit is contained in:
@@ -3,8 +3,8 @@ Before:
|
||||
runtime ale_linters/elm/make.vim
|
||||
|
||||
After:
|
||||
unlet! g:ale_elm_make_use_global
|
||||
unlet! g:ale_elm_make_executable
|
||||
unlet! g:ale_elm_use_global
|
||||
unlet! g:ale_elm_executable
|
||||
|
||||
call ale#test#RestoreDirectory()
|
||||
|
||||
@@ -12,25 +12,25 @@ Execute(should get valid executable with default params):
|
||||
call ale#test#SetFilename('elm-test-files/app/testfile.elm')
|
||||
|
||||
AssertEqual
|
||||
\ ale#path#Simplify(g:dir . '/elm-test-files/app/node_modules/.bin/elm-make'),
|
||||
\ ale#path#Simplify(g:dir . '/elm-test-files/app/node_modules/.bin/elm'),
|
||||
\ ale_linters#elm#make#GetExecutable(bufnr(''))
|
||||
|
||||
Execute(should get valid executable with 'use_global' params):
|
||||
let g:ale_elm_make_use_global = 1
|
||||
let g:ale_elm_use_global = 1
|
||||
|
||||
call ale#test#SetFilename('elm-test-files/app/testfile.elm')
|
||||
|
||||
AssertEqual
|
||||
\ 'elm-make',
|
||||
\ 'elm',
|
||||
\ ale_linters#elm#make#GetExecutable(bufnr(''))
|
||||
|
||||
Execute(should get valid executable with 'use_global' and 'executable' params):
|
||||
let g:ale_elm_make_executable = 'other-elm-make'
|
||||
let g:ale_elm_make_use_global = 1
|
||||
let g:ale_elm_executable = 'other-elm'
|
||||
let g:ale_elm_use_global = 1
|
||||
|
||||
call ale#test#SetFilename('elm-test-files/app/testfile.elm')
|
||||
|
||||
AssertEqual
|
||||
\ 'other-elm-make',
|
||||
\ 'other-elm',
|
||||
\ ale_linters#elm#make#GetExecutable(bufnr(''))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user