Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Bug: CC0048 nested interpolations doesn't fix in one iteration #690

@jakubsuchybio

Description

@jakubsuchybio

Hi.
When I have nested string.Format , then applying CC0048 will only solve first or selected one of them.
For example on this code:

var foo = string.Format( "{0}", string.Format( "{0}", 1 ) );

It will fix only one of them in one go. I think it would be good to solve them all at once.

Edit: Sorry I forgot to mention by using FixAll in Solution it will only fix one of them instead of both.
When those string.Formats are concatenated they are fixed correctly. Like in here:

var foo = string.Format( "{0}", 1 ) + string.Format( "{0}", 1 );

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions