diff options
author | w0rp <w0rp@users.noreply.github.com> | 2016-10-11 13:33:18 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-11 13:33:18 +0100 |
commit | 6ee42c9a2d800d41e14081539e38e74ef91b6941 (patch) | |
tree | 78e73ed97e71e63703bd3f76be5e336c95b5e087 /ale_linters | |
parent | 0fa730aecff6481a932e7114bd1653f705991889 (diff) | |
parent | 38dcf30045133b7154def9bad6a89a5d7258700d (diff) | |
download | ale-6ee42c9a2d800d41e14081539e38e74ef91b6941.zip |
Merge pull request #91 from w0rp/vint-style-flag
Support Vint style issues, and enabling/disabling them
Diffstat (limited to 'ale_linters')
-rw-r--r-- | ale_linters/vim/vint.vim | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/ale_linters/vim/vint.vim b/ale_linters/vim/vint.vim index e2c156f7..c23574ac 100644 --- a/ale_linters/vim/vint.vim +++ b/ale_linters/vim/vint.vim @@ -7,11 +7,20 @@ endif let g:loaded_ale_linters_vim_vint = 1 +" This flag can be used to change enable/disable style issues. +let g:ale_vim_vint_show_style_issues = +\ get(g:, 'ale_vim_vint_show_style_issues', 1) + +let s:warning_flag = g:ale_vim_vint_show_style_issues ? '-s' : '-w' let s:format = '-f "{file_path}:{line_number}:{column_number}: {severity}: {description} (see {reference})"' call ale#linter#Define('vim', { \ 'name': 'vint', \ 'executable': 'vint', -\ 'command': g:ale#util#stdin_wrapper . ' .vim vint -w --no-color ' . s:format, +\ 'command': g:ale#util#stdin_wrapper +\ . ' .vim vint ' +\ . s:warning_flag +\ . ' --no-color ' +\ . s:format, \ 'callback': 'ale#handlers#HandleGCCFormat', \}) |