1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-01-24 02:20:03 +08:00
SpaceVim/bundle/neomake/tests/ft_elixir.vader
2020-06-13 14:06:35 +08:00

24 lines
689 B
Plaintext
Vendored

Include: include/setup.vader
Execute (Credo: postprocess: type):
function! s:F(entry)
call neomake#makers#ft#elixir#PostprocessCredo(a:entry)
return a:entry
endfunction
AssertEqual s:F({'type': 'C'}).type, 'W'
AssertEqual s:F({'type': 'F'}).type, 'W'
let g:neomake_elixir_credo_config_typemap = {'F': 'Z'}
AssertEqual s:F({'type': 'F'}).type, 'Z'
Execute (Mix: postprocess: line is never higher than buffer size):
function! s:F(entry)
call neomake#makers#ft#elixir#PostprocessEnforceMaxBufferLine(a:entry)
return a:entry
endfunction
norm! ggdG
norm! iline1
norm! oline2
AssertEqual s:F({'lnum': 3}).lnum, 2
AssertEqual s:F({'lnum': 1}).lnum, 1