diff options
author | w0rp <devw0rp@gmail.com> | 2018-06-24 21:16:45 +0100 |
---|---|---|
committer | w0rp <devw0rp@gmail.com> | 2018-06-24 21:16:45 +0100 |
commit | 620951b6d3420ca69754f3e1068167729d8c651b (patch) | |
tree | 2880dce657ca750d3a6179420d655f00136b46fd /doc/ale.txt | |
parent | 755f1a4ccfff28463b0fe30f74a97390ae59d1fa (diff) | |
download | ale-620951b6d3420ca69754f3e1068167729d8c651b.zip |
Close #1453 #1172 - Add ale_linters_ignore for ignoring linter results
Diffstat (limited to 'doc/ale.txt')
-rw-r--r-- | doc/ale.txt | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/doc/ale.txt b/doc/ale.txt index daec16b4..2f91c6d1 100644 --- a/doc/ale.txt +++ b/doc/ale.txt @@ -1231,6 +1231,32 @@ g:ale_linters_explicit *g:ale_linters_explicit* as possible, unless otherwise specified. +g:ale_linters_ignore *g:ale_linters_ignore* + *b:ale_linters_ignore* + + Type: |Dictionary| or |List| + Default: `{}` + + Linters to ignore. Commands for ignored linters will not be run, and + diagnostics for LSP linters will be ignored. (See |ale-lsp|) + + This setting can be set to a |Dictionary| mapping filetypes to linter names, + just like |g:ale_linters|, to list linters to ignore. Ignore lists will be + applied after everything else. > + + " Select flake8 and pylint, and ignore pylint, so only flake8 is run. + let g:ale_linters = {'python': ['flake8', 'pylint']} + let g:ale_linters_ignore = {'python': ['pylint']} +< + This setting can be set to simply a |List| of linter names, which is + especially more convenient when using the setting in ftplugin files for + particular buffers. > + + " The same as above, in a ftplugin/python.vim. + let b:ale_linters = ['flake8', 'pylint'] + let b:ale_linters_ignore = ['pylint'] +< + g:ale_list_vertical *g:ale_list_vertical* *b:ale_list_vertical* Type: |Number| |