Skip to content

Conversation

@deepsource-autofix
Copy link
Contributor

This PR refactors several classes by marking fields that are only assigned once as readonly. By making these fields immutable, we improve code safety, readability, and adherence to best practices.

  • Fields initialized only in constructors can be made readonly: DeepSource flagged multiple fields—such as ConfigurationRoot, parameters, domainEventHandlerResolver, various counters in SubscriptionRepository, featureTags, and featureInfo—that were only ever set during object construction. We added the readonly modifier to each of these, ensuring they cannot be reassigned after initialization and enhancing overall code immutability.

This Autofix was generated by AI. Please review the change before merging.

This PR refactors several classes by marking fields that are only assigned once as `readonly`. By making these fields immutable, we improve code safety, readability, and adherence to best practices.

- Fields initialized only in constructors can be made `readonly`: DeepSource flagged multiple fields—such as `ConfigurationRoot`, `parameters`, `domainEventHandlerResolver`, various counters in `SubscriptionRepository`, `featureTags`, and `featureInfo`—that were only ever set during object construction. We added the `readonly` modifier to each of these, ensuring they cannot be reassigned after initialization and enhancing overall code immutability.

> This Autofix was generated by AI. Please review the change before merging.
@deepsource-io
Copy link

deepsource-io bot commented Sep 22, 2025

Here's the code health analysis summary for commits 5ed0989..803a857. View details on DeepSource ↗.

Analysis Summary

AnalyzerStatusSummaryLink
DeepSource SQL LogoSQL✅ SuccessView Check ↗
DeepSource Docker LogoDocker✅ SuccessView Check ↗
DeepSource C# LogoC#✅ Success
🎯 4 occurences resolved
View Check ↗

💡 If you’re a repository administrator, you can configure the quality gates from the settings.

@StuartFerguson StuartFerguson merged commit 5799509 into master Sep 22, 2025
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants