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

Improve IDE0035 for bool variables that are de facto constants #72781

Open
vsfeedback opened this issue Mar 28, 2024 · 0 comments
Open

Improve IDE0035 for bool variables that are de facto constants #72781

vsfeedback opened this issue Mar 28, 2024 · 0 comments
Labels
Area-IDE Concept-Continuous Improvement Feature - IDE0035 Unreachable code detected Need Design Review The end user experience design needs to be reviewed and approved.
Milestone

Comments

@vsfeedback
Copy link

This issue has been moved from a ticket on Developer Community.


If a local variable of type bool is declared and assigned to false in cases where it never changes in code, IDE0035 should fire in if checks


Original Comments

Feedback Bot on 3/27/2024, 03:59 AM:

(private comment, text removed)

@dotnet-issue-labeler dotnet-issue-labeler bot added Area-IDE untriaged Issues and PRs which have not yet been triaged by a lead labels Mar 28, 2024
@sharwell sharwell added Feature - IDE0035 Unreachable code detected Concept-Continuous Improvement Need Design Review The end user experience design needs to be reviewed and approved. and removed untriaged Issues and PRs which have not yet been triaged by a lead labels Apr 5, 2024
@sharwell sharwell added this to the Backlog milestone Apr 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-IDE Concept-Continuous Improvement Feature - IDE0035 Unreachable code detected Need Design Review The end user experience design needs to be reviewed and approved.
Projects
Status: In Queue
Development

No branches or pull requests

2 participants