Conversation
Contributor
There was a problem hiding this comment.
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
usingdirectives in several command, utility, and test files. - Normalize minor formatting in CommandLine activity tests.
- Simplify
ActivityTreeto use the in-scopeStyle.Plaininstead 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.
This was referenced May 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary of the changes (Less than 80 chars)