Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[StyleCleanUp] Addressing SA warnings Part 1 #10119

Merged
merged 4 commits into from
Dec 17, 2024

Conversation

harshit7962
Copy link
Member

@harshit7962 harshit7962 commented Nov 26, 2024

Description

This work is a part of our initiative to set code-style guidelines, align WPF and WinForms, and ensure PR standards with respect to styles. This in turn will help us in better maintainability and readability of the repo overall. The changes follow up from the PR #10080 and references to the issue #10017.

The current changes addresses the following Errors/Warnings in the src folder of WPF:

  • SA1408: Conditional expressions should declare precedence
  • SA1404: Code analysis suppression should have justification
  • SA1131: Constant values should appear on the right-hand side of comparisons

A good way to go about reviewing this is to go commit by commit which pans over individual errors/warnings, and hence easing out the overall understanding.

Customer Impact

None

Regression

None

Testing

Local Build Pass
The current set of changes looks fairly mechanical and probably don't need a Test Pass, but these set of PRs can be clubbed to do so at a later stage.

Risk

Low.

@harshit7962 harshit7962 requested review from a team as code owners November 26, 2024 13:01
@dotnet-policy-service dotnet-policy-service bot added the PR metadata: Label to tag PRs, to facilitate with triage label Nov 26, 2024
@harshit7962 harshit7962 changed the title Code Style Cleanup Part 1 [StyleCleanUp] Addressing SA warnings Part 1 Nov 26, 2024
…bjectWriterContext.cs

Co-authored-by: h3xds1nz <gamingshard@protonmail.com>
@harshit7962 harshit7962 merged commit 907b59a into dotnet:main Dec 17, 2024
8 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
PR metadata: Label to tag PRs, to facilitate with triage Status:Completed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants