-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Remove module lines in "text" and "parseable" reporter #5362
Comments
There are multiple easily parseable outputs , we're not going to make a breaking change to the output without a really good reason. |
There aren't "multiple" easily parseable outputs. The only one I've found easily parseable is the However, I found the "parseable" format is going to be deprecated: It'd be very easy to keep it useful by overwriting def handle_message(self, msg: Message) -> None:
"""manage message of different type and in the context of path"""
self.write_message(msg) Is that by intention that pylint output is going be parsed in json anyway? |
pylint is already very configurable. Did you try to specify the output you want with
https://pylint.pycqa.org/en/latest/user_guide/output.html#custom-message-formats |
Yes, I know this intra-line formatting is very configurable (and works great), but what I'm asking here is about inter-line formatting. Those extra pylint ... | grep -v '\*\*\*\*\*\*\*\*\*\*\*\*\*' As you can see this is awkward. If you omit those markers we can save the |
@Pierre-Sassoulas is this a very breakable change that we want to wait for 3.0 or are we good to do it now / anytime? |
I think it's possible to add an option to remove the intraline without touching the default and witohut breaking changes. |
@Pierre-Sassoulas what's the right way to add a new configuration options, such as Basically so I can do
|
You can check |
Any chance we can have an option to remove these module lines from "text" reporter? They are annoying when parsing the messages and require an extra step of filtering. This is also true for the "parseable" reporter. At least make this option available in the "parseable" reporter?
https://github.com/PyCQA/pylint/blob/d29bcf68393b6a1654aa6cd3d5351ed63edb42ad/pylint/reporters/text.py#L198
The text was updated successfully, but these errors were encountered: