Skip to content

test: remove redundant usings flagged by InspectCode - #706

Merged
Chris-Wolfgang merged 1 commit into
mainfrom
fix/inspectcode-redundant-usings
Oct 12, 2026
Merged

Chris-Wolfgang merged 1 commit into
mainfrom
fix/inspectcode-redundant-usings

Conversation

@Chris-Wolfgang

Copy link
Copy Markdown
Owner

Summary

Removes the unused using System.Diagnostics.CodeAnalysis; from 6 test files. InspectCode flags each one as RedundantUsingDirective.

Alert File
2307 Tests.Unit/BaseClassTests/ExtractorBaseCoverageTests.cs
2308 Tests.Unit/BaseClassTests/LoaderBaseCoverageTests.cs (#661)
2310 Tests.Unit/BaseClassTests/TransformerBaseCoverageTests.cs (#660)
2329 Tests.Unit/BaseClassTests/TimerSeamTests.cs
2330 Tests.Unit/ItemErrorHandlingTests.cs
2331 TestKit.Tests.Unit/TestLoaderMutationTests.cs

Closes #660
Closes #661

This is the bottom PR of a stack of security-alert fixes.

Verified

  • dotnet build -c Release of Wolfgang.Etl.Abstractions.Tests.Unit and Wolfgang.Etl.TestKit.Tests.Unit, all TFMs: 0 warnings, 0 errors.
  • The alert count is not verified yet. Check it on this PR's code-scanning results.

🤖 Generated with Claude Code

… by InspectCode

Clears code-scanning alerts 2307, 2308, 2310, 2329, 2330, 2331
(RedundantUsingDirective).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copilot AI balanced review requested due to automatic review settings October 12, 2026 15:35

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

The changes are limited to removing unused imports and introduce no functional behavior changes.

0 open findings

What changed in this PR

Removes six redundant System.Diagnostics.CodeAnalysis imports from unit tests, resolving InspectCode warnings including issues #660 and #661.

Changes:

  • Removed unused imports from five abstraction test files.
  • Removed the same import from one TestKit test file.
File Description
tests/​Wolfgang.Etl.TestKit.Tests.Unit/​TestLoaderMutationTests.cs Removes redundant import.
tests/​Wolfgang.Etl.Abstractions.Tests.Unit/​ItemErrorHandlingTests.cs Removes redundant import.
tests/​Wolfgang.Etl.Abstractions.Tests.Unit/​BaseClassTests/​TransformerBaseCoverageTests.cs Removes redundant import for #660.
tests/​Wolfgang.Etl.Abstractions.Tests.Unit/​BaseClassTests/​TimerSeamTests.cs Removes redundant import.
tests/​Wolfgang.Etl.Abstractions.Tests.Unit/​BaseClassTests/​LoaderBaseCoverageTests.cs Removes redundant import for #661.
tests/​Wolfgang.Etl.Abstractions.Tests.Unit/​BaseClassTests/​ExtractorBaseCoverageTests.cs Removes redundant import.

🧠 Review effort: Balanced


💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

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

Labels

None yet

Projects

None yet

2 participants