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 new linter warnings. #13233

Closed
wants to merge 2 commits into from
Closed

Fix new linter warnings. #13233

wants to merge 2 commits into from

Conversation

jpakkane
Copy link
Member

No description provided.

Copy link
Member

@eli-schwartz eli-schwartz left a comment

Choose a reason for hiding this comment

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

I already have a PR for this. I didn't get a chance to push a couple more commits before the weekend.

The changes here are actually wrong though.

@jpakkane
Copy link
Member Author

The changes here are actually wrong though.

In which way?

@@ -15,6 +15,7 @@

if gcovr_exe == '':
gcovr_exe = None
gcovr_version = '0'

Check notice

Code scanning / CodeQL

Unused local variable Note

Variable gcovr_version is not used.
@eli-schwartz
Copy link
Member

pylint is also incapable of analyzing when variables will exist in multiple conditional blocks using the same conditional, and I don't believe the solution is to add code that fails mypy strict-optional just to make pylint happy with a check that is very prone to false positives.

@jpakkane jpakkane closed this May 19, 2024
@jpakkane jpakkane deleted the lintfixes branch May 19, 2024 20:57
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

Successfully merging this pull request may close these issues.

None yet

2 participants