Create reasonml merlin linter

copy @andreypopp 's ocaml merlin linter from this project into reason
This commit is contained in:
Jacob Bass
2017-04-26 19:25:25 +10:00
parent 65fc4aeb1e
commit 4db5f3923d
3 changed files with 33 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
" Author: Andrey Popp -- @andreypopp
" Description: Report errors in ReasonML code with Merlin
if !exists('g:merlin')
finish
endif
function! ale_linters#reason#merlin#Handle(buffer, lines) abort
return merlin#ErrorLocList()
endfunction
call ale#linter#Define('reason', {
\ 'name': 'merlin',
\ 'executable': 'ocamlmerlin',
\ 'command': 'true',
\ 'callback': 'ale_linters#reason#merlin#Handle',
\})