From 067601e9db7e0c2ab6c8394c9be74769463c6da9 Mon Sep 17 00:00:00 2001 From: w0rp Date: Sun, 27 Jan 2019 16:16:22 +0000 Subject: [PATCH] Set lint_file for the ameba linter --- ale_linters/crystal/ameba.vim | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/ale_linters/crystal/ameba.vim b/ale_linters/crystal/ameba.vim index d50d9fd3..165cabd0 100644 --- a/ale_linters/crystal/ameba.vim +++ b/ale_linters/crystal/ameba.vim @@ -11,13 +11,6 @@ function! ale_linters#crystal#ameba#GetCommand(buffer) abort \ . ale#Escape(expand('#' . a:buffer . ':p')) endfunction -call ale#linter#Define('crystal', { -\ 'name': 'ameba', -\ 'executable_callback': ale#VarFunc('crystal_ameba_executable'), -\ 'command_callback': 'ale_linters#crystal#ameba#GetCommand', -\ 'callback': 'ale_linters#crystal#ameba#HandleAmebaOutput', -\}) - " Handle output from ameba function! ale_linters#crystal#ameba#HandleAmebaOutput(buffer, lines) abort if len(a:lines) == 0 @@ -54,3 +47,11 @@ function! ale_linters#crystal#ameba#HandleAmebaOutput(buffer, lines) abort return l:output endfunction + +call ale#linter#Define('crystal', { +\ 'name': 'ameba', +\ 'executable_callback': ale#VarFunc('crystal_ameba_executable'), +\ 'command_callback': 'ale_linters#crystal#ameba#GetCommand', +\ 'callback': 'ale_linters#crystal#ameba#HandleAmebaOutput', +\ 'lint_file': 1, +\})