mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-06 12:44:23 +08:00
Make code more consistent
This commit is contained in:
@@ -5,7 +5,7 @@ function! ale_linters#crystal#crystal#Handle(buffer, lines) abort
|
||||
let l:output = []
|
||||
|
||||
let l:lines = join(a:lines, '')
|
||||
|
||||
|
||||
if !empty(l:lines)
|
||||
let l:errors = json_decode(l:lines)
|
||||
|
||||
@@ -24,11 +24,11 @@ function! ale_linters#crystal#crystal#Handle(buffer, lines) abort
|
||||
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 = 'crystal build -f json --no-codegen -o '
|
||||
let l:crystal_cmd .= shellescape(g:ale#util#nul_file)
|
||||
let l:crystal_cmd .= ' %t'
|
||||
|
||||
return l:crystal_cmd
|
||||
return l:crystal_cmd
|
||||
endfunction
|
||||
|
||||
call ale#linter#Define('crystal', {
|
||||
|
||||
Reference in New Issue
Block a user