Skip to content

Add refactoring: convert interpolated string to Format call#948

Merged
meziantou merged 5 commits intomainfrom
issues/946
Dec 27, 2025
Merged

Add refactoring: convert interpolated string to Format call#948
meziantou merged 5 commits intomainfrom
issues/946

Conversation

@meziantou
Copy link
Owner

@meziantou meziantou commented Dec 27, 2025

Introduce ConvertToStringFormatRefactoring to convert interpolated strings to string.Format calls, handling alignment, format specifiers, and escaped braces. Add comprehensive tests for various scenarios. Update test project dependencies for Roslyn refactoring testing. Minor using directive fixes for consistency.

Fix #946

meziantou and others added 5 commits December 27, 2025 16:02
Introduce ConvertToStringFormatRefactoring to convert interpolated strings to string.Format calls, handling alignment, format specifiers, and escaped braces. Add comprehensive tests for various scenarios. Update test project dependencies for Roslyn refactoring testing. Minor using directive fixes for consistency.
@meziantou meziantou merged commit b7652a3 into main Dec 27, 2025
13 checks passed
@meziantou meziantou deleted the issues/946 branch December 27, 2025 21:16
This was referenced Dec 27, 2025
This was referenced Feb 18, 2026
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.

Rule to convert string interpolation to string.Format invocation

1 participant