Skip to content

Conversation

@deepsource-autofix
Copy link
Contributor

This PR refactors object instantiations throughout the codebase to leverage C# target-typed new expressions, removing unnecessary type verbosity on the right-hand side and improving readability.

  • Type can be dropped from the declaration's RHS when explicitly mentioned in the LHS: DeepSource flagged many instances where the same type was specified both before and after the equals sign. We replaced all such occurrences of new Type(...) with the simpler new(...), using the type inferred from the left-hand side declaration.

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

This PR refactors object instantiations throughout the codebase to leverage C# target-typed new expressions, removing unnecessary type verbosity on the right-hand side and improving readability.

- Type can be dropped from the declaration's RHS when explicitly mentioned in the LHS: DeepSource flagged many instances where the same type was specified both before and after the equals sign. We replaced all such occurrences of `new Type(...)` with the simpler `new(...)`, using the type inferred from the left-hand side declaration.

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

deepsource-io bot commented Sep 19, 2025

Here's the code health analysis summary for commits e3363a3..11be5bd. View details on DeepSource ↗.

Analysis Summary

AnalyzerStatusSummaryLink
DeepSource SQL LogoSQL✅ SuccessView Check ↗
DeepSource Docker LogoDocker✅ SuccessView Check ↗
DeepSource C# LogoC#❌ Failure
❗ 4 occurences introduced
🎯 125 occurences resolved
View Check ↗

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

@StuartFerguson StuartFerguson merged commit 746d66c into master Sep 19, 2025
10 of 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