-
-
Notifications
You must be signed in to change notification settings - Fork 94
feat: add support for enabling/disabling TUnit source generation via project properties #3635
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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