diff options
author | David Alexander <TheLonelyGhost@users.noreply.github.com> | 2017-06-15 04:30:34 -0400 |
---|---|---|
committer | w0rp <w0rp@users.noreply.github.com> | 2017-06-15 09:30:34 +0100 |
commit | fb682be1997f812171def14976b5dfbef38c9f0d (patch) | |
tree | 228b20e9676ffc0c1b3be39f57f7a8ff6ec8e09c /ale_linters/crystal | |
parent | f814be45b19ae87c5931e72f67869c1fcdb35c24 (diff) | |
download | ale-fb682be1997f812171def14976b5dfbef38c9f0d.zip |
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
Diffstat (limited to 'ale_linters/crystal')
-rw-r--r-- | ale_linters/crystal/crystal.vim | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ale_linters/crystal/crystal.vim b/ale_linters/crystal/crystal.vim index 8f38a61b..fd076e02 100644 --- a/ale_linters/crystal/crystal.vim +++ b/ale_linters/crystal/crystal.vim @@ -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' |