Skip to content

[WIP] Update PR to resolve SonarQube issues based on feedback#25

Merged
casuffitsharp merged 2 commits intochore/sq_issuesfrom
copilot/sub-pr-21
Mar 2, 2026
Merged

[WIP] Update PR to resolve SonarQube issues based on feedback#25
casuffitsharp merged 2 commits intochore/sq_issuesfrom
copilot/sub-pr-21

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Mar 2, 2026

  • Fix BooleanToVisibilityConverter.ConvertBack to parse parameter as string (consistent with Convert)

💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Co-authored-by: casuffitsharp <78829483+casuffitsharp@users.noreply.github.com>
@sonarqubecloud
Copy link
Copy Markdown

sonarqubecloud Bot commented Mar 2, 2026

@casuffitsharp casuffitsharp marked this pull request as ready for review March 2, 2026 04:20
@casuffitsharp casuffitsharp merged commit 2ddff3b into chore/sq_issues Mar 2, 2026
2 checks passed
@casuffitsharp casuffitsharp deleted the copilot/sub-pr-21 branch March 2, 2026 04:20
Copilot stopped work on behalf of casuffitsharp due to an error March 2, 2026 04:20
casuffitsharp added a commit that referenced this pull request Mar 2, 2026
* refactor(sonar): addresses sonarqube issues

* [WIP] Update implementation based on feedback from sonar review (#24)

* Initial plan

* refactor: rename CPU.cs to Cpu.cs to match the Cpu type name

Co-authored-by: casuffitsharp <78829483+casuffitsharp@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: casuffitsharp <78829483+casuffitsharp@users.noreply.github.com>

* Use pattern matching to eliminate NullReferenceException in OnSelectedProcessChanged (#23)

* Initial plan

* Use pattern matching instead of unsafe cast in OnSelectedProcessChanged

Co-authored-by: casuffitsharp <78829483+casuffitsharp@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: casuffitsharp <78829483+casuffitsharp@users.noreply.github.com>

* Rename PCB.cs to Pcb.cs to match declared type name (#22)

* Initial plan

* Rename PCB.cs to Pcb.cs to match the Pcb class name

Co-authored-by: casuffitsharp <78829483+casuffitsharp@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: casuffitsharp <78829483+casuffitsharp@users.noreply.github.com>

* Apply suggestions from code review

Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>

* [WIP] Update PR to resolve SonarQube issues based on feedback (#25)

* Initial plan

* Fix ConvertBack to parse parameter as string instead of casting to bool

Co-authored-by: casuffitsharp <78829483+casuffitsharp@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: casuffitsharp <78829483+casuffitsharp@users.noreply.github.com>

* Adjusted #pragma warning restore S2325 placement for clarity.

* Fix BooleanToVisibilityConverter parameter handling to support both string and bool types (#26)

* Initial plan

* Fix BooleanToVisibilityConverter to handle parameter as both string and bool

Co-authored-by: casuffitsharp <78829483+casuffitsharp@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: casuffitsharp <78829483+casuffitsharp@users.noreply.github.com>

* Performing code cleanup

* Use null-conditional when updating prev process state

Replaced direct assignment with null-conditional operator for prev.State to prevent possible NullReferenceException if prev is null.

---------

Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
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.

2 participants