Skip to content

Fix various analyzer errors#9567

Merged
glen-84 merged 1 commit intomainfrom
gai/fix-analyzer-errors
Apr 17, 2026
Merged

Fix various analyzer errors#9567
glen-84 merged 1 commit intomainfrom
gai/fix-analyzer-errors

Conversation

@glen-84
Copy link
Copy Markdown
Member

@glen-84 glen-84 commented Apr 17, 2026

Summary of the changes (Less than 80 chars)

  • Fix various analyzer errors.

Copilot AI review requested due to automatic review settings April 17, 2026 08:46
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR addresses analyzer warnings/errors across the Nitro CommandLine and HotChocolate codebases, primarily by removing unused using directives and applying small formatting cleanups.

Changes:

  • Remove unused using directives in several command, utility, and test files.
  • Normalize minor formatting in CommandLine activity tests.
  • Simplify ActivityTree to use the in-scope Style.Plain instead of a fully-qualified reference.

Reviewed changes

Copilot reviewed 11 out of 12 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/Nitro/CommandLine/test/CommandLine.Tests/Console/NitroConsoleActivityTests.cs Removes extra whitespace in StartActivity calls to satisfy analyzers/formatters.
src/Nitro/CommandLine/test/CommandLine.Tests/Commands/Workspaces/SetDefaultWorkspaceCommandTests.cs Removes unused using directives in workspace command tests.
src/Nitro/CommandLine/src/CommandLine/Services/Console/ActivityTree.cs Uses Style.Plain directly (consistent with project-wide global usings) and avoids redundant qualification.
src/Nitro/CommandLine/src/CommandLine/Extensions/ParseResultExtensions.cs Removes an unused using directive.
src/Nitro/CommandLine/src/CommandLine/Commands/OpenApi/DeleteOpenApiCollectionCommand.cs Removes unused import.
src/Nitro/CommandLine/src/CommandLine/Commands/Mocks/UpdateMockCommand.cs Removes unused import.
src/Nitro/CommandLine/src/CommandLine/Commands/Mcp/DeleteMcpFeatureCollectionCommand.cs Removes unused import.
src/Nitro/CommandLine/src/CommandLine/Commands/Clients/DeleteClientCommand.cs Removes unused import.
src/HotChocolate/Fusion/test/Fusion.AspNetCore.Tests/FusionTestBase.cs Removes unused Microsoft.Extensions.Hosting import.
src/HotChocolate/Fusion/benchmarks/k6/eShop.Inventory/ProductNode.cs Removes unused HotChocolate import and leading blank line.
src/HotChocolate/Core/test/Types.Analyzers.Integration.Tests/IsSelectedTests.cs Removes unused HotChocolate.Tests import.
src/HotChocolate/Core/src/Types/Utilities/ErrorHelper.cs Removes unused HotChocolate.Execution.Processing import.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants