feat: add support for enabling/disabling TUnit source generation via project properties#3635
feat: add support for enabling/disabling TUnit source generation via project properties#3635
Conversation
|
Claude finished @thomhurst's task —— View job PR Review: Enable/Disable TUnit Source GenerationReviewed the pull request for adding project property support to control TUnit source generation. Todo List:
Code Review Findings✅ Strengths
🔍 Critical Issue: Incomplete ImplementationMissing Generators: The implementation is incomplete. Based on my analysis, the following generators in the
These generators will continue to run even when Recommended Fix: Add the same enablement check to all missing generators: public void Initialize(IncrementalGeneratorInitializationContext context)
{
var enabledProvider = context.AnalyzerConfigOptionsProvider
.Select((options, _) =>
{
options.GlobalOptions.TryGetValue("build_property.EnableTUnitSourceGeneration", out var value);
return !string.Equals(value, "false", StringComparison.OrdinalIgnoreCase);
});
// Combine with existing providers and add early return...
}📋 Other IssuesTest Coverage:
Minor Code Issues:
🔒 Security & Performance
📝 Code Quality
🧪 Test Recommendations
SummaryWhile the implementation shows good understanding of the requirements and follows consistent patterns, the PR is incomplete due to missing generators that should also respect the Recommendation: Please add the enable/disable logic to all remaining generators before merging to ensure the feature works as intended. |
Fixes #3619