summaryrefslogtreecommitdiff
path: root/ale_linters/crystal
diff options
context:
space:
mode:
authorw0rp <devw0rp@gmail.com>2019-01-27 16:16:22 +0000
committerw0rp <devw0rp@gmail.com>2019-01-27 16:16:22 +0000
commit067601e9db7e0c2ab6c8394c9be74769463c6da9 (patch)
tree2cf0d964dba8ece205094be7eabb399809654c1b /ale_linters/crystal
parent17a2f554e3b56411aec3f2ae4d3b0f44656870ef (diff)
downloadale-067601e9db7e0c2ab6c8394c9be74769463c6da9.zip
Set lint_file for the ameba linter
Diffstat (limited to 'ale_linters/crystal')
-rw-r--r--ale_linters/crystal/ameba.vim15
1 files 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,
+\})