This repository has been archived by the owner on Aug 12, 2023. It is now read-only.
How to handle json output when it's not a list of messages #889
-
I'm wondering if {
"summary": {
"started": "2022-05-29 13:51:42.435756",
"libraries": [],
"strictness": "from profile",
"profiles": ".prospector.yml, no_doc_warnings, no_member_warnings, no_test_warnings, strictness_medium, strictness_high, strictness_veryhigh",
"tools": [
"mypy",
"pep8",
"profile-validator",
"pyflakes",
"pylint"
],
"message_count": 1,
"completed": "2022-05-29 13:51:45.395426",
"time_taken": "2.96",
"formatter": "json"
},
"messages": [
{
"source": "pylint",
"code": "protected-access",
"location": {
"path": "example/api.py",
"module": "example.api",
"function": "example_function",
"line": 32,
"character": 25
},
"message": "Access to a protected member _d_ of an example class"
}
]
} |
Beta Was this translation helpful? Give feedback.
Answered by
jose-elias-alvarez
May 30, 2022
Replies: 1 comment 1 reply
-
If I understand correctly, you should be able to follow an approach like what we used here to pass a different key as the "main" JSON object. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
okuuva
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If I understand correctly, you should be able to follow an approach like what we used here to pass a different key as the "main" JSON object.