Closed NiyazNz closed 2 years ago
Produces invalid json while running with --statistics flag: flake8 --exit-zero --format gl-codeclimate --output-file gl-code-quality-report.json --statistics ./bad.py
--statistics
flake8 --exit-zero --format gl-codeclimate --output-file gl-code-quality-report.json --statistics ./bad.py
[ {"type": "issue", "check_name": "pyflakes", "description": "'sys' imported but unused [F401]", "categories": ["Bug Risk"], "location": {"path": "./bad.py", "lines": {"begin": 6, "end": 6}}, "fingerprint": "be4204587f1dd5f79831ef568b403006a305b6e7", "severity": "minor"}, {"type": "issue", "check_name": "pycodestyle", "description": "expected 2 blank lines, found 1 [E302]", "categories": ["Style"], "location": {"path": "./bad.py", "lines": {"begin": 8, "end": 8}}, "fingerprint": "37de3f11f21c76af4e4d073fd1b0cbca2ef15f50", "severity": "major"}, {"type": "issue", "check_name": "pyflakes", "description": "undefined name 'parsre' [F821]", "categories": ["Bug Risk"], "location": {"path": "./bad.py", "lines": {"begin": 10, "end": 10}}, "fingerprint": "e8db878ef050d9b2861d28885a8d260c37dafb0d", "severity": "minor"}1 E302 expected 2 blank lines, found 1 1 F401 'sys' imported but unused 1 F821 undefined name 'parsre' ]
PyCQA/flake8#1458
Produces invalid json while running with
--statistics
flag:flake8 --exit-zero --format gl-codeclimate --output-file gl-code-quality-report.json --statistics ./bad.py