PyFlake doesn't seem to handle the syntax(?) error of defining a function where a variable with a default value is followed by a variable without a default.
Minimal code to reproduce
def failure(var1="test", var2):
pass
Quickfix output
Error detected while processing function flake8#on_write..flake8#check:
line 1:
E121: Undefined variable: null
E15: Invalid expression: [{"lnum": null, "text": "non-default argument follows default argument", "type": "E",
"col": 0, "filename": "/home/paal/tmp.py"}]
Traceback (most recent call last):
File "", line 1, in
File "", line 15, in flake8_check
File "", line 18, in parse_result
vim.error
line 3:
E121: Undefined variable: g:qf_list
E15: Invalid expression: g:qf_list
line 6:
E121: Undefined variable: g:qf_list
E116: Invalid arguments for function setqflist
line 16:
E121: Undefined variable: g:qf_list
E116: Invalid arguments for function len(g:qf_list)
E15: Invalid expression: len(g:qf_list)
PyFlake doesn't seem to handle the syntax(?) error of defining a function where a variable with a default value is followed by a variable without a default.
Minimal code to reproduce
Quickfix output Error detected while processing function flake8#on_write..flake8#check: line 1: E121: Undefined variable: null E15: Invalid expression: [{"lnum": null, "text": "non-default argument follows default argument", "type": "E", "col": 0, "filename": "/home/paal/tmp.py"}] Traceback (most recent call last): File "", line 1, in
File "", line 15, in flake8_check
File "", line 18, in parse_result
vim.error
line 3:
E121: Undefined variable: g:qf_list
E15: Invalid expression: g:qf_list
line 6:
E121: Undefined variable: g:qf_list
E116: Invalid arguments for function setqflist
line 16:
E121: Undefined variable: g:qf_list
E116: Invalid arguments for function len(g:qf_list)
E15: Invalid expression: len(g:qf_list)