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

Fix: [unknown-option-value] False negative after --disable=all #9491

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

fellhorn
Copy link

@fellhorn fellhorn commented Mar 9, 2024

Type of Changes

Type
βœ“ πŸ› Bug

Description

Closes #9403 by excluding a set of internal pylint messages from --disable=all.

As this is my first PR to pylint I appreciate any comment on the solution. Especially in regards of the message codes and having to change an existing test.

fellhorn and others added 3 commits February 25, 2024 21:08
Signed-off-by: Dennis Keck <26092524+fellhorn@users.noreply.github.com>
Signed-off-by: Dennis Keck <26092524+fellhorn@users.noreply.github.com>
Copy link
Contributor

github-actions bot commented Mar 9, 2024

πŸ€– According to the primer, this change has no effect on the checked open source code. πŸ€–πŸŽ‰

This comment was generated for commit 302e513

@jacobtylerwalls jacobtylerwalls changed the title Fix: [unknown-option-value] False negative after --disable=al Fix: [unknown-option-value] False negative after --disable=all Mar 9, 2024
Comment on lines +218 to +219
self._runtest([UNNECESSARY_LAMBDA, "--disable=all"], out=out, code=0)
assert "Your code has been rated at 10.00/10" in out.getvalue().strip()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @fellhorn, thanks for picking this up. I think we should find a solution that does not cause this test to fail. If you look at the blame for this line, we're trying to alert the user that they perhaps accidentally disabled all messages. We need to ignore the set of "pylint's own messages" when making that determination so that we can continue to check "accidentally disabled everything but pylint's own messages" if that makes sense.

@Pierre-Sassoulas Pierre-Sassoulas added Work in progress False Negative πŸ¦‹ No message is emitted but something is wrong with the code Waiting on author Indicate that maintainers are waiting for a message of the author and removed Work in progress labels Mar 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
False Negative πŸ¦‹ No message is emitted but something is wrong with the code Waiting on author Indicate that maintainers are waiting for a message of the author
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[unknown-option-value] False negative after --disable=all
3 participants