@@ -20,7 +20,7 @@ public static class DiagnosticDescriptors
20
20
public static readonly DiagnosticDescriptor SamplePaneOptionAttributeOnNonSample = new (
21
21
id : "TKSMPL0001" ,
22
22
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",
24
24
category : typeof ( ToolkitSampleMetadataGenerator ) . FullName ,
25
25
defaultSeverity : DiagnosticSeverity . Error ,
26
26
isEnabledByDefault : true ,
@@ -35,7 +35,7 @@ public static class DiagnosticDescriptors
35
35
public static readonly DiagnosticDescriptor SamplePaneOptionWithBadName = new (
36
36
id : "TKSMPL0002" ,
37
37
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",
39
39
category : typeof ( ToolkitSampleMetadataGenerator ) . FullName ,
40
40
defaultSeverity : DiagnosticSeverity . Error ,
41
41
isEnabledByDefault : true ,
@@ -50,7 +50,7 @@ public static class DiagnosticDescriptors
50
50
public static readonly DiagnosticDescriptor OptionsPaneAttributeWithMissingOrInvalidSampleId = new (
51
51
id : "TKSMPL0003" ,
52
52
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",
54
54
category : typeof ( ToolkitSampleMetadataGenerator ) . FullName ,
55
55
defaultSeverity : DiagnosticSeverity . Error ,
56
56
isEnabledByDefault : true ,
@@ -65,7 +65,7 @@ public static class DiagnosticDescriptors
65
65
public static readonly DiagnosticDescriptor SamplePaneOptionWithDuplicateName = new (
66
66
id : "TKSMPL0004" ,
67
67
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",
69
69
category : typeof ( ToolkitSampleMetadataGenerator ) . FullName ,
70
70
defaultSeverity : DiagnosticSeverity . Error ,
71
71
isEnabledByDefault : true ,
@@ -80,7 +80,7 @@ public static class DiagnosticDescriptors
80
80
public static readonly DiagnosticDescriptor SamplePaneOptionWithConflictingName = new (
81
81
id : "TKSMPL0005" ,
82
82
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",
84
84
category : typeof ( ToolkitSampleMetadataGenerator ) . FullName ,
85
85
defaultSeverity : DiagnosticSeverity . Error ,
86
86
isEnabledByDefault : true ,
@@ -95,7 +95,7 @@ public static class DiagnosticDescriptors
95
95
public static readonly DiagnosticDescriptor SamplePaneMultiChoiceOptionWithNoChoices = new (
96
96
id : "TKSMPL0006" ,
97
97
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",
99
99
category : typeof ( ToolkitSampleMetadataGenerator ) . FullName ,
100
100
defaultSeverity : DiagnosticSeverity . Error ,
101
101
isEnabledByDefault : true ,
@@ -110,7 +110,7 @@ public static class DiagnosticDescriptors
110
110
public static readonly DiagnosticDescriptor SampleAttributeOnUnsupportedType = new (
111
111
id : "TKSMPL0007" ,
112
112
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",
114
114
category : typeof ( ToolkitSampleMetadataGenerator ) . FullName ,
115
115
defaultSeverity : DiagnosticSeverity . Error ,
116
116
isEnabledByDefault : true ,
@@ -125,7 +125,7 @@ public static class DiagnosticDescriptors
125
125
public static readonly DiagnosticDescriptor SampleOptionPaneAttributeOnUnsupportedType = new (
126
126
id : "TKSMPL0008" ,
127
127
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",
129
129
category : typeof ( ToolkitSampleMetadataGenerator ) . FullName ,
130
130
defaultSeverity : DiagnosticSeverity . Error ,
131
131
isEnabledByDefault : true ,
@@ -140,7 +140,7 @@ public static class DiagnosticDescriptors
140
140
public static readonly DiagnosticDescriptor SampleGeneratedOptionAttributeOnUnsupportedType = new (
141
141
id : "TKSMPL0009" ,
142
142
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",
144
144
category : typeof ( ToolkitSampleMetadataGenerator ) . FullName ,
145
145
defaultSeverity : DiagnosticSeverity . Error ,
146
146
isEnabledByDefault : true ,
@@ -152,7 +152,7 @@ public static class DiagnosticDescriptors
152
152
public static readonly DiagnosticDescriptor MarkdownYAMLFrontMatterException = new (
153
153
id : "TKSMPL0010" ,
154
154
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}}",
156
156
category : typeof ( ToolkitSampleMetadataGenerator ) . FullName ,
157
157
defaultSeverity : DiagnosticSeverity . Error ,
158
158
isEnabledByDefault : true ,
@@ -164,7 +164,7 @@ public static class DiagnosticDescriptors
164
164
public static readonly DiagnosticDescriptor MarkdownYAMLFrontMatterMissingField = new (
165
165
id : "TKSMPL0011" ,
166
166
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",
168
168
category : typeof ( ToolkitSampleMetadataGenerator ) . FullName ,
169
169
defaultSeverity : DiagnosticSeverity . Error ,
170
170
isEnabledByDefault : true ,
@@ -176,7 +176,7 @@ public static class DiagnosticDescriptors
176
176
public static readonly DiagnosticDescriptor MarkdownSampleIdNotFound = new (
177
177
id : "TKSMPL0012" ,
178
178
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}}'",
180
180
category : typeof ( ToolkitSampleMetadataGenerator ) . FullName ,
181
181
defaultSeverity : DiagnosticSeverity . Error ,
182
182
isEnabledByDefault : true ,
@@ -188,7 +188,7 @@ public static class DiagnosticDescriptors
188
188
public static readonly DiagnosticDescriptor SampleNotReferencedInMarkdown = new (
189
189
id : "TKSMPL0013" ,
190
190
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",
192
192
category : typeof ( ToolkitSampleMetadataGenerator ) . FullName ,
193
193
defaultSeverity : DiagnosticSeverity . Warning ,
194
194
isEnabledByDefault : true ,
@@ -200,7 +200,7 @@ public static class DiagnosticDescriptors
200
200
public static readonly DiagnosticDescriptor DocumentationHasNoSamples = new (
201
201
id : "TKSMPL0014" ,
202
202
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",
204
204
category : typeof ( ToolkitSampleMetadataGenerator ) . FullName ,
205
205
defaultSeverity : DiagnosticSeverity . Warning ,
206
206
isEnabledByDefault : true ,
@@ -215,7 +215,7 @@ public static class DiagnosticDescriptors
215
215
public static readonly DiagnosticDescriptor SampleIdAlreadyInUse = new (
216
216
id : "TKSMPL0015" ,
217
217
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",
219
219
category : typeof ( ToolkitSampleMetadataGenerator ) . FullName ,
220
220
defaultSeverity : DiagnosticSeverity . Error ,
221
221
isEnabledByDefault : true ,
0 commit comments