Skip to content

refactor: mark fields as readonly#132

Merged
StuartFerguson merged 1 commit intomainfrom
deepsource-autofix-18e01de8
Sep 18, 2025
Merged

refactor: mark fields as readonly#132
StuartFerguson merged 1 commit intomainfrom
deepsource-autofix-18e01de8

Conversation

@deepsource-autofix
Copy link
Copy Markdown
Contributor

This PR updates class fields that are only assigned during construction to be readonly, improving immutability and ensuring thread-safety.

  • Fields initialized only in constructors can be made readonly: Several private fields (Requests, DomainService, and AggregateRepository) were found to be assigned only at declaration or inside constructors. Each has been prefixed with the readonly modifier to prevent unintended reassignment and better document their immutability.

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

This PR updates class fields that are only assigned during construction to be `readonly`, improving immutability and ensuring thread-safety.

- **Fields initialized only in constructors can be made `readonly`**: Several private fields (`Requests`, `DomainService`, and `AggregateRepository`) were found to be assigned only at declaration or inside constructors. Each has been prefixed with the `readonly` modifier to prevent unintended reassignment and better document their immutability.

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

deepsource-io Bot commented Sep 18, 2025

Here's the code health analysis summary for commits 21e05db..e65a5d3. View details on DeepSource ↗.

Analysis Summary

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

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

@StuartFerguson StuartFerguson merged commit bf53c53 into main Sep 18, 2025
11 checks passed
@github-actions github-actions Bot deleted the deepsource-autofix-18e01de8 branch November 18, 2025 00:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant