diff options
Diffstat (limited to 'ale_linters/ruby/rails_best_practices.vim')
-rw-r--r-- | ale_linters/ruby/rails_best_practices.vim | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/ale_linters/ruby/rails_best_practices.vim b/ale_linters/ruby/rails_best_practices.vim index a3d9f7a2..503a115c 100644 --- a/ale_linters/ruby/rails_best_practices.vim +++ b/ale_linters/ruby/rails_best_practices.vim @@ -5,17 +5,11 @@ let g:ale_ruby_rails_best_practices_options = \ get(g:, 'ale_ruby_rails_best_practices_options', '') function! ale_linters#ruby#rails_best_practices#Handle(buffer, lines) abort - if len(a:lines) == 0 - return [] - endif - - let l:result = json_decode(join(a:lines, '')) - let l:output = [] - for l:warning in l:result + for l:warning in ale#util#FuzzyJSONDecode(a:lines, []) if !ale#path#IsBufferPath(a:buffer, l:warning.filename) - continue + continue endif call add(l:output, { |