|
11 | 11 |
|
12 | 12 | namespace Philips.CodeAnalysis.MaintainabilityAnalyzers.Maintainability |
13 | 13 | { |
14 | | - [ExportCodeFixProvider(LanguageNames.CSharp, Name = nameof(AvoidStringFormatInInterpolatedStringCodeFixProvider)), Shared] |
15 | | - public class AvoidStringFormatInInterpolatedStringCodeFixProvider : SingleDiagnosticCodeFixProvider<InterpolationSyntax> |
| 14 | + [ExportCodeFixProvider(LanguageNames.CSharp, |
| 15 | + Name = nameof(AvoidStringFormatInInterpolatedStringCodeFixProvider)), Shared] |
| 16 | + public class AvoidStringFormatInInterpolatedStringCodeFixProvider : |
| 17 | + SingleDiagnosticCodeFixProvider<InterpolationSyntax> |
16 | 18 | { |
17 | | - protected override string Title => "Simplify string.Format in interpolated string"; |
| 19 | + protected override string Title => "Remove redundant string.Format call"; |
18 | 20 |
|
19 | | - protected override DiagnosticId DiagnosticId => DiagnosticId.AvoidStringFormatInInterpolatedString; |
| 21 | + protected override DiagnosticId DiagnosticId => |
| 22 | + DiagnosticId.AvoidStringFormatInInterpolatedString; |
20 | 23 |
|
21 | 24 | protected override Task<Document> ApplyFix(Document document, InterpolationSyntax node, |
22 | 25 | ImmutableDictionary<string, string> properties, CancellationToken cancellationToken) |
23 | 26 | { |
24 | | - // TODO: Implement the actual logic to convert string.Format to direct interpolation |
25 | | - // For now, just return the document unchanged |
| 27 | + // TODO: Implement string.Format conversion logic |
| 28 | + // For now, return unchanged |
26 | 29 | return Task.FromResult(document); |
27 | 30 | } |
28 | 31 | } |
|
0 commit comments