All patches and comments are welcome. Please squash your changes to logical
commits before using git-format-patch and git-send-email to
patches@git.madduck.net.
If you'd read over the Git project's submission guidelines and adhered to them,
I'd be especially grateful.
2 Save g:ale_warn_about_trailing_whitespace
4 let g:ale_warn_about_trailing_whitespace = 1
6 runtime ale_linters/python/prospector.vim
11 call ale#linter#Reset()
13 Execute(Basic prospector errors should be handle):
19 \ 'text': 'Trailing whitespace',
20 \ 'code': '(pylint) trailing-whitespace',
26 \ 'text': 'Missing module docstring',
27 \ 'code': '(pylint) missing-docstring',
33 \ 'text': 'Missing function docstring',
34 \ 'code': '(pylint) missing-docstring',
40 \ 'text': '''break'' not properly in loop',
41 \ 'code': '(pylint) not-in-loop',
47 \ 'text': 'Unreachable code',
48 \ 'code': '(pylint) unreachable',
54 \ 'text': 'No exception type(s) specified',
55 \ 'code': '(pylint) bare-except',
59 \ ale_linters#python#prospector#Handle(bufnr(''), [
63 \ ' "source": "pylint",',
64 \ ' "code": "trailing-whitespace",',
65 \ ' "message": "Trailing whitespace",',
72 \ ' "source": "pylint",',
73 \ ' "code": "missing-docstring",',
74 \ ' "message": "Missing module docstring",',
81 \ ' "source": "pylint",',
82 \ ' "code": "missing-docstring",',
83 \ ' "message": "Missing function docstring",',
90 \ ' "source": "pylint",',
91 \ ' "code": "not-in-loop",',
92 \ ' "message": "''break'' not properly in loop",',
99 \ ' "source": "pylint",',
100 \ ' "code": "unreachable",',
101 \ ' "message": "Unreachable code",',
103 \ ' "character": 4,',
108 \ ' "source": "pylint",',
109 \ ' "code": "bare-except",',
110 \ ' "message": "No exception type(s) specified",',
112 \ ' "character": 32,',
120 Execute(Ignoring trailing whitespace messages should work):
121 let g:ale_warn_about_trailing_whitespace = 0
128 \ 'text': 'Missing module docstring',
129 \ 'code': '(pylint) missing-docstring',
133 \ ale_linters#python#prospector#Handle(bufnr(''), [
137 \ ' "source": "pylint",',
138 \ ' "code": "trailing-whitespace",',
139 \ ' "message": "Trailing whitespace",',
141 \ ' "character": 0,',
146 \ ' "source": "pylint",',
147 \ ' "code": "missing-docstring",',
148 \ ' "message": "Missing module docstring",',
150 \ ' "character": 0,',
158 Execute(The prospector handler should handle empty output):
161 \ ale_linters#python#prospector#Handle(bufnr(''), [])