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_blank_lines
3 Save g:ale_warn_about_trailing_whitespace
5 let g:ale_warn_about_trailing_blank_lines = 1
6 let g:ale_warn_about_trailing_whitespace = 1
8 runtime ale_linters/python/pycodestyle.vim
13 unlet! b:ale_warn_about_trailing_blank_lines
14 unlet! b:ale_warn_about_trailing_whitespace
16 call ale#linter#Reset()
18 Execute(The pycodestyle handler should parse output):
25 \ 'text': 'SyntaxError: invalid syntax',
31 \ 'text': 'multiple imports on one line',
34 \ 'sub_type': 'style',
39 \ 'text': 'expected 2 blank lines, found 1',
42 \ 'sub_type': 'style',
47 \ 'text': 'expected 1 blank line, found 0',
50 \ 'sub_type': 'style',
55 \ 'text': 'deprecated form of raising exception',
58 \ 'sub_type': 'style',
63 \ 'text': '.has_key() is deprecated, use ''in''',
66 \ 'sub_type': 'style',
69 \ ale_linters#python#pycodestyle#Handle(bufnr(''), [
70 \ 'stdin:8:3: E999 SyntaxError: invalid syntax',
71 \ 'stdin:69:11: E401 multiple imports on one line',
72 \ 'stdin:77:1: E302 expected 2 blank lines, found 1',
73 \ 'stdin:88:5: E301 expected 1 blank line, found 0',
74 \ 'stdin:222:34: W602 deprecated form of raising exception',
75 \ 'example.py:544:21: W601 .has_key() is deprecated, use ''in''',
78 Execute(Warnings about trailing whitespace should be reported by default):
86 \ 'sub_type': 'style',
87 \ 'text': 'who cares',
94 \ 'sub_type': 'style',
95 \ 'text': 'who cares',
98 \ ale_linters#python#pycodestyle#Handle(bufnr(''), [
99 \ 'foo.py:6:1: W291 who cares',
100 \ 'foo.py:6:1: W293 who cares',
103 Execute(Disabling trailing whitespace warnings should work):
104 let b:ale_warn_about_trailing_whitespace = 0
109 \ ale_linters#python#pycodestyle#Handle(bufnr(''), [
110 \ 'foo.py:6:1: W291 who cares',
111 \ 'foo.py:6:1: W293 who cares',
114 Execute(Warnings about trailing blank lines should be reported by default):
122 \ 'sub_type': 'style',
123 \ 'text': 'blank line at end of file',
126 \ ale_linters#python#pycodestyle#Handle(bufnr(''), [
127 \ 'foo.py:6:1: W391 blank line at end of file',
130 Execute(Disabling trailing blank line warnings should work):
131 let b:ale_warn_about_trailing_blank_lines = 0
136 \ ale_linters#python#pycodestyle#Handle(bufnr(''), [
137 \ 'foo.py:6:1: W391 blank line at end of file',
140 Execute(E112 should be a syntax error):
148 \ 'text': 'expected an indented block',
151 \ ale_linters#python#pycodestyle#Handle(bufnr(''), [
152 \ 'foo.py:6:1: E112 expected an indented block',