refactor: remove unused CompositeAnalyzer in favor of AllAnalyzersVerifier#1049
refactor: remove unused CompositeAnalyzer in favor of AllAnalyzersVerifier#1049
Conversation
…ifier CompositeAnalyzer and AllAnalyzersVerifier both used reflection to discover all DiagnosticAnalyzer types. CompositeAnalyzer was dead code, referenced by no tests. AllAnalyzersVerifier is actively used by 4 test classes for false-positive verification. Remove CompositeAnalyzer and its project. Closes #530 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Codex usage limits have been reached for code reviews. Please check with the admins of this repo to increase the limits by adding credits. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (5)
💤 Files with no reviewable changes (4)
📝 WalkthroughWalkthroughThis PR removes the Moq.Analyzers.Test.Analyzers test project and its CompositeAnalyzer implementation from the solution, consolidating diagnostic testing into the existing AllAnalyzersVerifier approach. Project references, build configurations, and solution nesting entries are updated accordingly. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~5 minutes Possibly related PRs
Suggested labels
Suggested reviewers
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
Comment |
|
|
Overall Grade |
Security Reliability Complexity Hygiene |
Code Review Summary
| Analyzer | Status | Updated (UTC) | Details |
|---|---|---|---|
| C# | Mar 8, 2026 6:07p.m. | Review ↗ |
Coverage summary from CodacySee diff coverage on Codacy
Coverage variation details
Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: Diff coverage details
Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: See your quality gate settings Change summary preferences |
Remove stale reference to deleted Moq.Analyzers.Test.Analyzers project from CodeAnalysis.props condition. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…ifier (#1049) ## Summary - Removes `CompositeAnalyzer` and its entire project (`Moq.Analyzers.Test.Analyzers`), which was dead code not referenced by any test - Keeps `AllAnalyzersVerifier`, which is actively used by 4 test classes for false-positive verification - Both used reflection to discover all `DiagnosticAnalyzer` types, but only `AllAnalyzersVerifier` was wired into the test suite ## Details `CompositeAnalyzer` wrapped all analyzers into a single `DiagnosticAnalyzer` subclass. `AllAnalyzersVerifier` runs each analyzer individually through `AnalyzerVerifier<T>`. The latter approach gives better test isolation and diagnostic attribution. Since `CompositeAnalyzer` had zero usages, removing it is the correct reconciliation. **Files removed:** - `tests/Moq.Analyzers.Test.Analyzers/CompositeAnalyzer.cs` - `tests/Moq.Analyzers.Test.Analyzers/Moq.Analyzers.Test.Analyzers.csproj` **Files modified:** - `Moq.Analyzers.sln` (removed project entry and build configurations) - `tests/Moq.Analyzers.Test/Moq.Analyzers.Test.csproj` (removed project reference) ## Test plan - [x] Solution builds with zero warnings and zero errors - [x] All 2978 tests pass Closes #530 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Chores** * Removed test analyzer project from the solution structure and updated related project configurations to streamline the build setup. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: Richard Murillo <rjmurillo@users.noreply.github.com> Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
…ifier (#1049) ## Summary - Removes `CompositeAnalyzer` and its entire project (`Moq.Analyzers.Test.Analyzers`), which was dead code not referenced by any test - Keeps `AllAnalyzersVerifier`, which is actively used by 4 test classes for false-positive verification - Both used reflection to discover all `DiagnosticAnalyzer` types, but only `AllAnalyzersVerifier` was wired into the test suite ## Details `CompositeAnalyzer` wrapped all analyzers into a single `DiagnosticAnalyzer` subclass. `AllAnalyzersVerifier` runs each analyzer individually through `AnalyzerVerifier<T>`. The latter approach gives better test isolation and diagnostic attribution. Since `CompositeAnalyzer` had zero usages, removing it is the correct reconciliation. **Files removed:** - `tests/Moq.Analyzers.Test.Analyzers/CompositeAnalyzer.cs` - `tests/Moq.Analyzers.Test.Analyzers/Moq.Analyzers.Test.Analyzers.csproj` **Files modified:** - `Moq.Analyzers.sln` (removed project entry and build configurations) - `tests/Moq.Analyzers.Test/Moq.Analyzers.Test.csproj` (removed project reference) ## Test plan - [x] Solution builds with zero warnings and zero errors - [x] All 2978 tests pass Closes #530 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Chores** * Removed test analyzer project from the solution structure and updated related project configurations to streamline the build setup. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --------- Co-authored-by: Richard Murillo <rjmurillo@users.noreply.github.com> Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Summary
CompositeAnalyzerand its entire project (Moq.Analyzers.Test.Analyzers), which was dead code not referenced by any testAllAnalyzersVerifier, which is actively used by 4 test classes for false-positive verificationDiagnosticAnalyzertypes, but onlyAllAnalyzersVerifierwas wired into the test suiteDetails
CompositeAnalyzerwrapped all analyzers into a singleDiagnosticAnalyzersubclass.AllAnalyzersVerifierruns each analyzer individually throughAnalyzerVerifier<T>. The latter approach gives better test isolation and diagnostic attribution. SinceCompositeAnalyzerhad zero usages, removing it is the correct reconciliation.Files removed:
tests/Moq.Analyzers.Test.Analyzers/CompositeAnalyzer.cstests/Moq.Analyzers.Test.Analyzers/Moq.Analyzers.Test.Analyzers.csprojFiles modified:
Moq.Analyzers.sln(removed project entry and build configurations)tests/Moq.Analyzers.Test/Moq.Analyzers.Test.csproj(removed project reference)Test plan
Closes #530
🤖 Generated with Claude Code
Summary by CodeRabbit