mirror of
https://github.com/dense-analysis/ale.git
synced 2025-12-06 12:44:23 +08:00
Fix for Crystal support (#651)
* Strip color from Crystal compiler output * Don't lint files if the file doesn't exist * Lint files if they are readable
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
" Author: Jordan Andree <https://github.com/jordanandree>
|
||||
" Author: Jordan Andree <https://github.com/jordanandree>, David Alexander <opensource@thelonelyghost.com>
|
||||
" Description: This file adds support for checking Crystal with crystal build
|
||||
|
||||
function! ale_linters#crystal#crystal#Handle(buffer, lines) abort
|
||||
@@ -24,7 +24,7 @@ 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 = 'crystal build -f json --no-codegen --no-color -o '
|
||||
let l:crystal_cmd .= ale#Escape(g:ale#util#nul_file)
|
||||
let l:crystal_cmd .= ' %s'
|
||||
|
||||
|
||||
Reference in New Issue
Block a user