Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Statistics flag #6

Closed
NiyazNz opened this issue Jan 20, 2022 · 1 comment
Closed

Statistics flag #6

NiyazNz opened this issue Jan 20, 2022 · 1 comment

Comments

@NiyazNz
Copy link

NiyazNz commented Jan 20, 2022

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
Copy link
Author

NiyazNz commented Jan 20, 2022

PyCQA/flake8#1458

@NiyazNz NiyazNz closed this as completed Jan 20, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant