Skip to content

Fix CodeQL warnings - #7827

Merged
zivkan merged 1 commit into
devfrom
dev-zivkan-local-codeql-analysis
Oct 30, 2026
Merged

zivkan merged 1 commit into
devfrom
dev-zivkan-local-codeql-analysis

Conversation

@zivkan

@zivkan zivkan commented Oct 28, 2026

Copy link
Copy Markdown
Member

Bug

Fixes: refactor

Description

My previous PR didn't clear the CodeQL warnings, so I got copilot to run codeql locally, so I could verify it really is still warning, fix the warnings, then run CodeQL again to verify the warnings are gone.

There was one public API that couldn't be fixed without a signature change, so it's marked as obsolete. Unfortunately, a test suggests that the .NET SDK is using that API, so forward flow into the dotnet VMR might fail. We'll have to monitor the forward flow PRs and if the build fails, push a change to the SDK directory to change the API to the new API. From a quick search, it looks like it's only being used in tests, not product code.

Otherwise, small refactors to keep the static analysis happy.

PR Checklist

  • Meaningful title, helpful description and a linked NuGet/Home issue
  • Added tests
  • Link to an issue or pull request to update docs if this PR changes settings, environment variables, new feature, etc. N/A

@zivkan
zivkan requested a review from a team as a code owner October 28, 2026 04:04
@zivkan
zivkan force-pushed the dev-zivkan-local-codeql-analysis branch from 51439ac to d74eb8a Compare October 28, 2026 23:41
@zivkan
zivkan merged commit 98afbff into dev Oct 30, 2026
18 checks passed
@zivkan
zivkan deleted the dev-zivkan-local-codeql-analysis branch October 30, 2026 19:16
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