Skip to content

refactor: use Uri types instead of strings - #8

Open
deepsource-autofix[bot] wants to merge 1 commit into
v2.9.0.1-basefrom
deepsource-autofix-11a16739
Open

refactor: use Uri types instead of strings#8
deepsource-autofix[bot] wants to merge 1 commit into
v2.9.0.1-basefrom
deepsource-autofix-11a16739

Conversation

@deepsource-autofix

Copy link
Copy Markdown

This PR refactors all URL-related string properties, fields, and methods to use System.Uri, improving type safety and built-in validation across the codebase.

  • Audit: Consider using System.URI instead of strings: Previously, many properties and internal fields represented URLs as plain strings, which could lead to invalid formats at runtime and lacked compile‐time enforcement. We converted these members to System.Uri, updated getters to return Uri instances, modified setters to store the URI via ToString(), and adjusted method signatures to accept and return Uri where appropriate.

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

This PR refactors all URL-related string properties, fields, and methods to use System.Uri, improving type safety and built-in validation across the codebase.

- Audit: Consider using `System.URI` instead of `string`s: Previously, many properties and internal fields represented URLs as plain strings, which could lead to invalid formats at runtime and lacked compile‐time enforcement. We converted these members to `System.Uri`, updated getters to return `Uri` instances, modified setters to store the URI via `ToString()`, and adjusted method signatures to accept and return `Uri` where appropriate.

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

deepsource-io Bot commented Sep 2, 2025

Copy link
Copy Markdown

Here's the code health analysis summary for commits 7184030..b8deb8c. View details on DeepSource ↗.

Analysis Summary

AnalyzerStatusSummaryLink
DeepSource C# LogoC#❌ FailureView Check ↗

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

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.

0 participants