This repository has been archived on 2024-07-19. You can view files and clone it, but cannot push or open issues or pull requests.
ale/ale_linters/vim/vint.vim

19 lines
571 B
VimL
Raw Normal View History

" Author: w0rp <devw0rp@gmail.com>
2016-10-03 18:53:07 +00:00
" Modified by: KabbAmine <amine.kabb@gmail.com>
" Description: This file adds support for checking Vim code with Vint.
if exists('g:loaded_ale_linters_vim_vint')
finish
endif
let g:loaded_ale_linters_vim_vint = 1
2016-10-03 18:53:07 +00:00
let s:format = '-f "{file_path}:{line_number}:{column_number}: {severity}: {description} (see {reference})'
call ALEAddLinter('vim', {
\ 'name': 'vint',
\ 'executable': 'vint',
2016-10-03 18:53:07 +00:00
\ 'command': g:ale#util#stdin_wrapper . ' .vim vint -w --no-color ' . s:format,
\ 'callback': 'ale#handlers#HandleGCCFormat',
\})