aboutsummaryrefslogtreecommitdiff
path: root/.vim/autoload/neomake/makers/ft/scala.vim
blob: 08998812a3669edfa176f21f4ef4e7b256114f9c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
" vim: ts=4 sw=4 et
function! neomake#makers#ft#scala#EnabledMakers() abort
    " use let g:neomake_scala_enabled_makers = ['fsc','scalastyle'] for fsc
    let makers = ['scalac', 'scalastyle']
    return makers
endfunction

function! neomake#makers#ft#scala#fsc() abort
    return {
        \ 'args': [
            \ '-Ystop-after:parser'
        \ ],
        \ 'errorformat':
            \ '%E%f:%l: %trror: %m,' .
            \ '%Z%p^,' .
            \ '%-G%.%#'
        \ }
endfunction

function! neomake#makers#ft#scala#scalac() abort
    return {
        \ 'args': [
            \ '-Ystop-after:parser'
        \ ],
        \ 'errorformat':
            \ '%E%f:%l: %trror: %m,' .
            \ '%Z%p^,' .
            \ '%-G%.%#'
        \ }
endfunction

function! neomake#makers#ft#scala#scalastyle() abort
    return {
        \ 'errorformat':
            \ '%trror file=%f message=%m line=%l column=%c,' .
            \ '%trror file=%f message=%m line=%l,' .
            \ '%tarning file=%f message=%m line=%l column=%c,' .
            \ '%tarning file=%f message=%m line=%l'
        \ }
endfunction