Merge pull request #478 from jordanandree/crystal-lint-file

turn on lint_file for crystal build to resolve `require` path errors
This commit is contained in:
w0rp 2017-04-15 16:00:25 +01:00 committed by GitHub
commit 296ae92da4

View File

@ -26,7 +26,7 @@ endfunction
function! ale_linters#crystal#crystal#GetCommand(buffer) abort
let l:crystal_cmd = 'crystal build -f json --no-codegen -o '
let l:crystal_cmd .= shellescape(g:ale#util#nul_file)
let l:crystal_cmd .= ' %t'
let l:crystal_cmd .= ' %s'
return l:crystal_cmd
endfunction
@ -35,6 +35,7 @@ call ale#linter#Define('crystal', {
\ 'name': 'crystal',
\ 'executable': 'crystal',
\ 'output_stream': 'both',
\ 'lint_file': 1,
\ 'command_callback': 'ale_linters#crystal#crystal#GetCommand',
\ 'callback': 'ale_linters#crystal#crystal#Handle',
\})