-
Notifications
You must be signed in to change notification settings - Fork 1
Add Roslyn Analyzer for Replacing string.Format
with Interpolated Strings (ECS0004)
#41
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
string.Format
with Interpolated Strings (ECS0004)
Some analyzers only work with C# language versions above a certain number or on certain runtimes
Coverage summary from CodacySee diff coverage on Codacy
Coverage variation details
Coverage variation is the difference between the coverage for the head and common ancestor commits of the pull request branch: Diff coverage details
Diff coverage is the percentage of lines that are covered by tests out of the coverable lines that the pull request added or modified: See your quality gate settings Change summary preferencesCodacy stopped sending the deprecated coverage status on June 5th, 2024. Learn more |
…trings (ECS0004) (#41) This pull request introduces a new Roslyn analyzer and code fix to enforce the use of interpolated strings instead of `string.Format`. This change addresses the recommendations outlined in Effective C#: 50 Specific Ways to Improve your C#. ## Rule Details ### Rule ID: ECS0004 **Title:** Replace string.Format with interpolated string **Category:** Style **Description:** This rule identifies instances of `string.Format` and suggests replacing them with C# interpolated strings for improved readability and reduced error potential.
This pull request introduces a new Roslyn analyzer and code fix to enforce the use of interpolated strings instead of
string.Format
. This change addresses the recommendations outlined in Effective C#: 50 Specific Ways to Improve your C#.Rule Details
Rule ID: ECS0004
Title: Replace string.Format with interpolated string
Category: Style
Description: This rule identifies instances of
string.Format
and suggests replacing them with C# interpolated strings for improved readability and reduced error potential.