-
-
Notifications
You must be signed in to change notification settings - Fork 95
feat: enable conditional source generation based on configuration property #3699
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: Conditional Source GenerationI've reviewed this PR which adds conditional source generation based on the ✅ Code Quality & Best PracticesExcellent Implementation:
Specific Implementation Details: // Consistent across all generators (AotConverter, HookMetadata, PropertyInjection, TestMetadata)
var enabledProvider = context.AnalyzerConfigOptionsProvider
.Select((options, _) =>
{
options.GlobalOptions.TryGetValue("build_property.EnableTUnitSourceGeneration", out var value);
return !string.Equals(value, "false", StringComparison.OrdinalIgnoreCase);
});✅ Performance ConsiderationsPositive Performance Impact:
Performance Analysis by Generator:
✅ Security ConsiderationsNo Security Issues Identified:
|
No description provided.