I have an ALE configuration for both shell & python. The shell lint seems to work, but the python only style issues, e.g.
for this dummy file:
import ..foo # bad import >>def a(a,b,c): >> print(d)A # << using unknown parameter >>def a(a, b. c): # << "." instead of "," >> pass # << not using the parameters >>aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa I only get the following errors:
- Line too long
- inline comment should start with '# '
- missing whitespace
but what about the blatant errors this file has? (which I commented myself)
This is my .vimrc
" Plugins call plug#begin('~/.vim/plugged') " linter Plug 'dense-analysis/ale' call plug#end() " Plugins end " ALE config let g:ale_linters = { \ 'python': ['flake8', 'pylint', 'bandit', 'mypy', 'pycodestyle'], \ 'shell': ['shellcheck'], \} I'm using
- Ubuntu 16.04
- default python version: 2.7.12
- Vim: 8.2.2251