awelzel / flake8-gl-codeclimate

Flake8 formatter producing Gitlab Code Quality artifacts.
MIT License
25 stars 12 forks source link

Statistics flag #6

Closed NiyazNz closed 2 years ago

NiyazNz commented 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

[
    {"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'
]
NiyazNz commented 2 years ago

PyCQA/flake8#1458