@@ -20,7 +20,7 @@ public static class DiagnosticDescriptors
2020 public static readonly DiagnosticDescriptor SamplePaneOptionAttributeOnNonSample = new (
2121 id : "TKSMPL0001" ,
2222 title : "Invalid sample option declaration" ,
23- messageFormat : "Cannot generate sample pane options for type {{0}} as it does not use ToolkitSampleAttribute" ,
23+ messageFormat : $ "Cannot generate sample pane options for type {{0}} as it does not use ToolkitSampleAttribute",
2424 category : typeof ( ToolkitSampleMetadataGenerator ) . FullName ,
2525 defaultSeverity : DiagnosticSeverity . Error ,
2626 isEnabledByDefault : true ,
@@ -35,7 +35,7 @@ public static class DiagnosticDescriptors
3535 public static readonly DiagnosticDescriptor SamplePaneOptionWithBadName = new (
3636 id : "TKSMPL0002" ,
3737 title : "Invalid sample option declaration" ,
38- messageFormat : "Cannot generate sample pane options for type {{0}} as the provided name is empty or invalid" ,
38+ messageFormat : $ "Cannot generate sample pane options for type {{0}} as the provided name is empty or invalid",
3939 category : typeof ( ToolkitSampleMetadataGenerator ) . FullName ,
4040 defaultSeverity : DiagnosticSeverity . Error ,
4141 isEnabledByDefault : true ,
@@ -50,7 +50,7 @@ public static class DiagnosticDescriptors
5050 public static readonly DiagnosticDescriptor OptionsPaneAttributeWithMissingOrInvalidSampleId = new (
5151 id : "TKSMPL0003" ,
5252 title : "Missing or invalid sample Id" ,
53- messageFormat : "Cannot link sample options pane to type {{0}} as the provided sample ID does not match any known ToolkitSampleAttribute" ,
53+ messageFormat : $ "Cannot link sample options pane to type {{0}} as the provided sample ID does not match any known ToolkitSampleAttribute",
5454 category : typeof ( ToolkitSampleMetadataGenerator ) . FullName ,
5555 defaultSeverity : DiagnosticSeverity . Error ,
5656 isEnabledByDefault : true ,
@@ -65,7 +65,7 @@ public static class DiagnosticDescriptors
6565 public static readonly DiagnosticDescriptor SamplePaneOptionWithDuplicateName = new (
6666 id : "TKSMPL0004" ,
6767 title : "Duplicate sample option name" ,
68- messageFormat : "Cannot generate sample pane option with name {{0}} as the provided name is already in use by another sample option" ,
68+ messageFormat : $ "Cannot generate sample pane option with name {{0}} as the provided name is already in use by another sample option",
6969 category : typeof ( ToolkitSampleMetadataGenerator ) . FullName ,
7070 defaultSeverity : DiagnosticSeverity . Error ,
7171 isEnabledByDefault : true ,
@@ -80,7 +80,7 @@ public static class DiagnosticDescriptors
8080 public static readonly DiagnosticDescriptor SamplePaneOptionWithConflictingName = new (
8181 id : "TKSMPL0005" ,
8282 title : "Conflicting sample option name" ,
83- messageFormat : "Cannot generate sample pane option with name {{0}} as the provided name is already defined as a member in the attached class" ,
83+ messageFormat : $ "Cannot generate sample pane option with name {{0}} as the provided name is already defined as a member in the attached class",
8484 category : typeof ( ToolkitSampleMetadataGenerator ) . FullName ,
8585 defaultSeverity : DiagnosticSeverity . Error ,
8686 isEnabledByDefault : true ,
@@ -95,7 +95,7 @@ public static class DiagnosticDescriptors
9595 public static readonly DiagnosticDescriptor SamplePaneMultiChoiceOptionWithNoChoices = new (
9696 id : "TKSMPL0006" ,
9797 title : "Missing choices in multi-choice sample option" ,
98- messageFormat : "Cannot generate multiple choice sample pane option with title {{0}} as no choices were provided" ,
98+ messageFormat : $ "Cannot generate multiple choice sample pane option with title {{0}} as no choices were provided",
9999 category : typeof ( ToolkitSampleMetadataGenerator ) . FullName ,
100100 defaultSeverity : DiagnosticSeverity . Error ,
101101 isEnabledByDefault : true ,
@@ -110,7 +110,7 @@ public static class DiagnosticDescriptors
110110 public static readonly DiagnosticDescriptor SampleAttributeOnUnsupportedType = new (
111111 id : "TKSMPL0007" ,
112112 title : "ToolkitSampleAttribute declared on an invalid type" ,
113- messageFormat : "Cannot generate sample metadata as the attribute was used on an unsupported type" ,
113+ messageFormat : $ "Cannot generate sample metadata as the attribute was used on an unsupported type",
114114 category : typeof ( ToolkitSampleMetadataGenerator ) . FullName ,
115115 defaultSeverity : DiagnosticSeverity . Error ,
116116 isEnabledByDefault : true ,
@@ -125,7 +125,7 @@ public static class DiagnosticDescriptors
125125 public static readonly DiagnosticDescriptor SampleOptionPaneAttributeOnUnsupportedType = new (
126126 id : "TKSMPL0008" ,
127127 title : "Toolkit sample options pane declared on an invalid type" ,
128- messageFormat : "Cannot generate options pane metadata as the attribute was used on an unsupported type" ,
128+ messageFormat : $ "Cannot generate options pane metadata as the attribute was used on an unsupported type",
129129 category : typeof ( ToolkitSampleMetadataGenerator ) . FullName ,
130130 defaultSeverity : DiagnosticSeverity . Error ,
131131 isEnabledByDefault : true ,
@@ -140,7 +140,7 @@ public static class DiagnosticDescriptors
140140 public static readonly DiagnosticDescriptor SampleGeneratedOptionAttributeOnUnsupportedType = new (
141141 id : "TKSMPL0009" ,
142142 title : "Toolkit sample option declared on an invalid type" ,
143- messageFormat : "Cannot generate sample option metadata as the attribute was used on an unsupported type" ,
143+ messageFormat : $ "Cannot generate sample option metadata as the attribute was used on an unsupported type",
144144 category : typeof ( ToolkitSampleMetadataGenerator ) . FullName ,
145145 defaultSeverity : DiagnosticSeverity . Error ,
146146 isEnabledByDefault : true ,
@@ -152,7 +152,7 @@ public static class DiagnosticDescriptors
152152 public static readonly DiagnosticDescriptor MarkdownYAMLFrontMatterException = new (
153153 id : "TKSMPL0010" ,
154154 title : "Invalid YAML Front Matter" ,
155- messageFormat : "Cannot generate sample page info for file {{0}} as an error was encountered parsing its YAML front matter: {{1}}" ,
155+ messageFormat : $ "Cannot generate sample page info for file {{0}} as an error was encountered parsing its YAML front matter: {{1}}",
156156 category : typeof ( ToolkitSampleMetadataGenerator ) . FullName ,
157157 defaultSeverity : DiagnosticSeverity . Error ,
158158 isEnabledByDefault : true ,
@@ -164,7 +164,7 @@ public static class DiagnosticDescriptors
164164 public static readonly DiagnosticDescriptor MarkdownYAMLFrontMatterMissingField = new (
165165 id : "TKSMPL0011" ,
166166 title : "Missing YAML Front Matter" ,
167- messageFormat : "Cannot generate sample page info for file {{0}} as no '{{1}}' field was found in its YAML front matter" ,
167+ messageFormat : $ "Cannot generate sample page info for file {{0}} as no '{{1}}' field was found in its YAML front matter",
168168 category : typeof ( ToolkitSampleMetadataGenerator ) . FullName ,
169169 defaultSeverity : DiagnosticSeverity . Error ,
170170 isEnabledByDefault : true ,
@@ -176,7 +176,7 @@ public static class DiagnosticDescriptors
176176 public static readonly DiagnosticDescriptor MarkdownSampleIdNotFound = new (
177177 id : "TKSMPL0012" ,
178178 title : "Sample Id Not Found from Markdown Reference" ,
179- messageFormat : "Cannot find the sample page referenced in file {{0}} with sample id '{{1}}'" ,
179+ messageFormat : $ "Cannot find the sample page referenced in file {{0}} with sample id '{{1}}'",
180180 category : typeof ( ToolkitSampleMetadataGenerator ) . FullName ,
181181 defaultSeverity : DiagnosticSeverity . Error ,
182182 isEnabledByDefault : true ,
@@ -188,7 +188,7 @@ public static class DiagnosticDescriptors
188188 public static readonly DiagnosticDescriptor SampleNotReferencedInMarkdown = new (
189189 id : "TKSMPL0013" ,
190190 title : "Sample Not Referenced In Documentation" ,
191- messageFormat : "The sample with id '{{0}}' is not referenced in any documentation files and will not appear in the full sample app" ,
191+ messageFormat : $ "The sample with id '{{0}}' is not referenced in any documentation files and will not appear in the full sample app",
192192 category : typeof ( ToolkitSampleMetadataGenerator ) . FullName ,
193193 defaultSeverity : DiagnosticSeverity . Warning ,
194194 isEnabledByDefault : true ,
@@ -200,7 +200,7 @@ public static class DiagnosticDescriptors
200200 public static readonly DiagnosticDescriptor DocumentationHasNoSamples = new (
201201 id : "TKSMPL0014" ,
202202 title : "Documentation Has No Samples" ,
203- messageFormat : "The documentation page '{{0}}' does not reference any sample examples, it is recommended to have at least one code sample per document page" ,
203+ messageFormat : $ "The documentation page '{{0}}' does not reference any sample examples, it is recommended to have at least one code sample per document page",
204204 category : typeof ( ToolkitSampleMetadataGenerator ) . FullName ,
205205 defaultSeverity : DiagnosticSeverity . Warning ,
206206 isEnabledByDefault : true ,
@@ -215,7 +215,7 @@ public static class DiagnosticDescriptors
215215 public static readonly DiagnosticDescriptor SampleIdAlreadyInUse = new (
216216 id : "TKSMPL0015" ,
217217 title : "Sample ID already in use" ,
218- messageFormat : "Cannot generate sample with id {{0}} as the provided id is already in use by another sample" ,
218+ messageFormat : $ "Cannot generate sample with id {{0}} as the provided id is already in use by another sample",
219219 category : typeof ( ToolkitSampleMetadataGenerator ) . FullName ,
220220 defaultSeverity : DiagnosticSeverity . Error ,
221221 isEnabledByDefault : true ,
0 commit comments