mirror of
https://github.com/dense-analysis/ale.git
synced 2026-11-05 20:02:50 +08:00
Create reasonml merlin linter
copy @andreypopp 's ocaml merlin linter from this project into reason
This commit is contained in:
1 parent
65fc4aeb1e
commit
4db5f3923d
3 files changed
+33
No files matched your search
@@ -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',
|
||||
\})
|
||||
Reference in new issue
Block a user