459 references to DiagnosticDescriptor
Aspire.Hosting.Analyzers (1)
AppHostAnalyzer.Diagnostics.cs (1)
14
internal static readonly DiagnosticDescriptor s_modelNameMustBeValid =
new
(
ConfigurationSchemaGenerator (1)
DiagnosticDescriptors.cs (1)
28
public static DiagnosticDescriptor PropertyNotSupported { get; } = new
DiagnosticDescriptor
(
CSharpSyntaxGenerator (3)
SourceGenerator.cs (3)
26
private static readonly DiagnosticDescriptor s_MissingSyntaxXml = new
DiagnosticDescriptor
(
34
private static readonly DiagnosticDescriptor s_UnableToReadSyntaxXml = new
DiagnosticDescriptor
(
42
private static readonly DiagnosticDescriptor s_SyntaxXmlError = new
DiagnosticDescriptor
(
ILLink.RoslynAnalyzer (3)
DiagnosticDescriptors.cs (3)
14
return new
DiagnosticDescriptor
(diagnosticId.AsString (),
24
=> new
DiagnosticDescriptor
(diagnosticId.AsString (),
44
return new
DiagnosticDescriptor
(diagnosticId.AsString (),
Microsoft.Analyzers.Extra (1)
DiagDescriptors.cs (1)
134
return
new
(
Microsoft.Analyzers.Local (1)
DiagDescriptors.cs (1)
116
=>
new
(id, title, messageFormat, category, defaultSeverity, true, description);
Microsoft.AspNetCore.Analyzers (3)
StartupAnalyzer.Diagnostics.cs (3)
15
internal static readonly DiagnosticDescriptor BuildServiceProviderShouldNotCalledInConfigureServicesMethod = new
DiagnosticDescriptor
(
24
internal static readonly DiagnosticDescriptor UnsupportedUseMvcWithEndpointRouting = new
DiagnosticDescriptor
(
33
internal static readonly DiagnosticDescriptor IncorrectlyConfiguredAuthorizationMiddleware = new
DiagnosticDescriptor
(
Microsoft.AspNetCore.App.Analyzers.Test (1)
Infrastructure\WellKnownTypesTests.cs (1)
90
internal static readonly DiagnosticDescriptor SuccessDescriptor =
new
(
Microsoft.AspNetCore.Mvc.Analyzers (6)
DiagnosticDescriptors.cs (6)
12
new
DiagnosticDescriptor
(
21
new
DiagnosticDescriptor
(
30
new
DiagnosticDescriptor
(
39
new
DiagnosticDescriptor
(
48
new
DiagnosticDescriptor
(
61
new
DiagnosticDescriptor
(
Microsoft.AspNetCore.Mvc.Api.Analyzers (4)
ApiDiagnosticDescriptors.cs (4)
12
new
DiagnosticDescriptor
(
21
new
DiagnosticDescriptor
(
30
new
DiagnosticDescriptor
(
39
new
DiagnosticDescriptor
(
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation.Test (1)
CompilerFailedExceptionFactoryTest.cs (1)
324
return new
DiagnosticDescriptor
(
Microsoft.AspNetCore.SignalR.Client.SourceGenerator (20)
DiagnosticDescriptors.cs (20)
14
public static DiagnosticDescriptor HubServerProxyNonInterfaceGenericTypeArgument { get; } = new
DiagnosticDescriptor
(
22
public static DiagnosticDescriptor HubServerProxyUnsupportedReturnType { get; } = new
DiagnosticDescriptor
(
30
public static DiagnosticDescriptor TooManyHubServerProxyAttributedMethods { get; } = new
DiagnosticDescriptor
(
38
public static DiagnosticDescriptor HubServerProxyAttributedMethodBadAccessibility { get; } = new
DiagnosticDescriptor
(
46
public static DiagnosticDescriptor HubServerProxyAttributedMethodIsNotPartial { get; } = new
DiagnosticDescriptor
(
54
public static DiagnosticDescriptor HubServerProxyAttributedMethodIsNotExtension { get; } = new
DiagnosticDescriptor
(
62
public static DiagnosticDescriptor HubServerProxyAttributedMethodTypeArgCountIsBad { get; } = new
DiagnosticDescriptor
(
70
public static DiagnosticDescriptor HubServerProxyAttributedMethodTypeArgAndReturnTypeDoesNotMatch { get; } = new
DiagnosticDescriptor
(
78
public static DiagnosticDescriptor HubServerProxyAttributedMethodArgCountIsBad { get; } = new
DiagnosticDescriptor
(
86
public static DiagnosticDescriptor HubServerProxyAttributedMethodArgIsNotHubConnection { get; } = new
DiagnosticDescriptor
(
96
public static DiagnosticDescriptor HubClientProxyUnsupportedReturnType { get; } = new
DiagnosticDescriptor
(
104
public static DiagnosticDescriptor TooManyHubClientProxyAttributedMethods { get; } = new
DiagnosticDescriptor
(
112
public static DiagnosticDescriptor HubClientProxyAttributedMethodBadAccessibility { get; } = new
DiagnosticDescriptor
(
120
public static DiagnosticDescriptor HubClientProxyAttributedMethodIsNotPartial { get; } = new
DiagnosticDescriptor
(
128
public static DiagnosticDescriptor HubClientProxyAttributedMethodIsNotExtension { get; } = new
DiagnosticDescriptor
(
136
public static DiagnosticDescriptor HubClientProxyAttributedMethodTypeArgCountIsBad { get; } = new
DiagnosticDescriptor
(
144
public static DiagnosticDescriptor HubClientProxyAttributedMethodTypeArgAndProviderTypeDoesNotMatch { get; } = new
DiagnosticDescriptor
(
152
public static DiagnosticDescriptor HubClientProxyAttributedMethodArgCountIsBad { get; } = new
DiagnosticDescriptor
(
160
public static DiagnosticDescriptor HubClientProxyAttributedMethodArgIsNotHubConnection { get; } = new
DiagnosticDescriptor
(
168
public static DiagnosticDescriptor HubClientProxyAttributedMethodHasBadReturnType { get; } = new
DiagnosticDescriptor
(
Microsoft.CodeAnalysis (5)
CommandLine\AnalyzerConfigSet.cs (3)
95
= new
DiagnosticDescriptor
(
104
= new
DiagnosticDescriptor
(
113
= new
DiagnosticDescriptor
(
CommandLine\CommonCompiler.SuppressionDiagnostic.cs (1)
20
private static readonly DiagnosticDescriptor s_suppressionDiagnosticDescriptor = new
DiagnosticDescriptor
(
DiagnosticAnalyzer\AnalyzerExecutor.cs (1)
1312
return new
DiagnosticDescriptor
(
Microsoft.CodeAnalysis.CSharp.CodeStyle.UnitTests (1)
src\Analyzers\CSharp\Tests\ConvertToRecord\ConvertToRecordCodeFixTests.cs (1)
164
=> ImmutableArray.Create(new
DiagnosticDescriptor
(
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (8)
CommandLineTests.cs (8)
14893
private static readonly DiagnosticDescriptor _rule = new
DiagnosticDescriptor
("Id", "Title", "Message", "Category", DiagnosticSeverity.Warning, isEnabledByDefault: true);
15933
internal static readonly DiagnosticDescriptor Hidden01 = new
DiagnosticDescriptor
("Hidden01", "", "Throwing a diagnostic for #region", "", DiagnosticSeverity.Hidden, isEnabledByDefault: true);
15934
internal static readonly DiagnosticDescriptor Hidden02 = new
DiagnosticDescriptor
("Hidden02", "", "Throwing a diagnostic for something else", "", DiagnosticSeverity.Hidden, isEnabledByDefault: true);
15958
internal static readonly DiagnosticDescriptor Info01 = new
DiagnosticDescriptor
("Info01", "", "Throwing a diagnostic for #pragma restore", "", DiagnosticSeverity.Info, isEnabledByDefault: true);
15985
internal static readonly DiagnosticDescriptor Warning01 = new
DiagnosticDescriptor
("Warning01", "", "Throwing a diagnostic for types declared", "", DiagnosticSeverity.Warning, isEnabledByDefault: true);
16008
internal static readonly DiagnosticDescriptor Warning02 = new
DiagnosticDescriptor
("Warning02", "", "Throwing a diagnostic for types declared", "", DiagnosticSeverity.Warning, isEnabledByDefault: true, helpLinkUri: "https://example.org/analyzer");
16026
internal static readonly DiagnosticDescriptor Error01 = new
DiagnosticDescriptor
("Error01", "", "Throwing a diagnostic for #pragma disable", "", DiagnosticSeverity.Error, isEnabledByDefault: true);
16027
internal static readonly DiagnosticDescriptor Error02 = new
DiagnosticDescriptor
("Error02", "", "Throwing a diagnostic for something else", "", DiagnosticSeverity.Error, isEnabledByDefault: true);
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (5)
Diagnostics\DiagnosticAnalyzerDriver\DiagnosticAnalyzerDriverTests.cs (2)
217
new
DiagnosticDescriptor
(ID, title: "Syntax", messageFormat: "Syntax", category: "Test", defaultSeverity: DiagnosticSeverity.Warning, isEnabledByDefault: true);
862
var descriptor = new
DiagnosticDescriptor
(id, "Title", messageFormat: analyzerName, "Category", DiagnosticSeverity.Warning, isEnabledByDefault: true);
Diagnostics\MockDiagnosticAnalyzerTests.cs (1)
23
private readonly DiagnosticDescriptor _descriptor = new
DiagnosticDescriptor
(Id, "MockDiagnostic", "MockDiagnostic", "InternalCategory", DiagnosticSeverity.Warning, isEnabledByDefault: true, helpLinkUri: "https://github.com/dotnet/roslyn");
EditorConfigSettings\Updater\SettingsUpdaterTests.cs (2)
133
var descriptor = new
DiagnosticDescriptor
(id: id, title: "", messageFormat: "", category: "Naming", defaultSeverity: DiagnosticSeverity.Warning, isEnabledByDefault: false);
332
var descriptor = new
DiagnosticDescriptor
(id: id, title: "", messageFormat: "", category: "Naming", defaultSeverity: DiagnosticSeverity.Warning, isEnabledByDefault: false);
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (58)
Diagnostics\DiagnosticAnalyzerTests.cs (29)
38
new
DiagnosticDescriptor
(id: "CA9999_UseOfVariableThatStartsWithX", title: "CA9999_UseOfVariableThatStartsWithX", messageFormat: "Use of variable whose name starts with 'x': '{0}'", category: "Test", defaultSeverity: DiagnosticSeverity.Warning, isEnabledByDefault: true);
234
private static readonly DiagnosticDescriptor s_descriptor = new
DiagnosticDescriptor
("XX0001", "My Syntax/Symbol Diagnostic", "My Syntax/Symbol Diagnostic for '{0}'", "Compiler", DiagnosticSeverity.Warning, isEnabledByDefault: true);
303
var noneDiagDescriptor = new
DiagnosticDescriptor
("XX0001", "DummyDescription", "DummyMessage", "DummyCategory", DiagnosticSeverity.Hidden, isEnabledByDefault: true);
304
var infoDiagDescriptor = new
DiagnosticDescriptor
("XX0002", "DummyDescription", "DummyMessage", "DummyCategory", DiagnosticSeverity.Info, isEnabledByDefault: true);
305
var warningDiagDescriptor = new
DiagnosticDescriptor
("XX0003", "DummyDescription", "DummyMessage", "DummyCategory", DiagnosticSeverity.Warning, isEnabledByDefault: true);
306
var errorDiagDescriptor = new
DiagnosticDescriptor
("XX0004", "DummyDescription", "DummyMessage", "DummyCategory", DiagnosticSeverity.Error, isEnabledByDefault: true);
387
var noneDiagDescriptor = new
DiagnosticDescriptor
("XX0001", "DummyDescription", "DummyMessage", "DummyCategory", DiagnosticSeverity.Hidden, isEnabledByDefault: true);
388
var infoDiagDescriptor = new
DiagnosticDescriptor
("XX0002", "DummyDescription", "DummyMessage", "DummyCategory", DiagnosticSeverity.Info, isEnabledByDefault: true);
389
var warningDiagDescriptor = new
DiagnosticDescriptor
("XX0003", "DummyDescription", "DummyMessage", "DummyCategory", DiagnosticSeverity.Warning, isEnabledByDefault: true);
390
var errorDiagDescriptor = new
DiagnosticDescriptor
("XX0004", "DummyDescription", "DummyMessage", "DummyCategory", DiagnosticSeverity.Error, isEnabledByDefault: true);
442
var disabledDiagDescriptor = new
DiagnosticDescriptor
("XX001", "DummyDescription", "DummyMessage", "DummyCategory", DiagnosticSeverity.Warning, isEnabledByDefault: false);
443
var enabledDiagDescriptor = new
DiagnosticDescriptor
("XX002", "DummyDescription", "DummyMessage", "DummyCategory", DiagnosticSeverity.Warning, isEnabledByDefault: true);
471
public static DiagnosticDescriptor desc1 = new
DiagnosticDescriptor
("XX001", "DummyDescription", "DummyMessage", "DummyCategory", DiagnosticSeverity.Warning, isEnabledByDefault: false);
472
public static DiagnosticDescriptor desc2 = new
DiagnosticDescriptor
("XX002", "DummyDescription", "DummyMessage", "DummyCategory", DiagnosticSeverity.Warning, isEnabledByDefault: false);
473
public static DiagnosticDescriptor desc3 = new
DiagnosticDescriptor
("XX003", "DummyDescription", "DummyMessage", "DummyCategory", DiagnosticSeverity.Warning, isEnabledByDefault: false, customTags: WellKnownDiagnosticTags.NotConfigurable);
487
public static DiagnosticDescriptor desc1 = new
DiagnosticDescriptor
("XX003", "DummyDescription", "DummyMessage", "DummyCategory", DiagnosticSeverity.Warning, isEnabledByDefault: false);
488
public static DiagnosticDescriptor desc2 = new
DiagnosticDescriptor
("XX004", "DummyDescription", "DummyMessage", "DummyCategory", DiagnosticSeverity.Warning, isEnabledByDefault: true);
502
public static DiagnosticDescriptor desc1 = new
DiagnosticDescriptor
("DummyId", "DummyDescription", "DummyMessage", "DummyCategory", DiagnosticSeverity.Warning, isEnabledByDefault: false);
656
internal static DiagnosticDescriptor Rule = new
DiagnosticDescriptor
(DiagnosticId, Title, MessageFormat, Category, DiagnosticSeverity.Warning, isEnabledByDefault: true);
829
public static DiagnosticDescriptor Descriptor1 = new
DiagnosticDescriptor
("MethodSymbolDiagnostic", "MethodSymbolDiagnostic", "{0}", "MethodSymbolDiagnostic", DiagnosticSeverity.Warning, isEnabledByDefault: true);
873
new
DiagnosticDescriptor
("ID_1", "DummyTitle", "DummyMessage", "DummyCategory", DiagnosticSeverity.Warning, isEnabledByDefault: true);
876
new
DiagnosticDescriptor
("ID_2", "DummyTitle", "DummyMessage", "DummyCategory", DiagnosticSeverity.Warning, isEnabledByDefault: true);
1284
var descriptor = new
DiagnosticDescriptor
(id: "Test0001", title: "Test0001", messageFormat: "Test0001", category: "Test0001", defaultSeverity: defaultSeverity, isEnabledByDefault: isEnabledByDefault);
1635
public static readonly DiagnosticDescriptor ExpressionDescriptor = new
DiagnosticDescriptor
(
2283
public static readonly DiagnosticDescriptor Warning = new
DiagnosticDescriptor
(
2291
public static readonly DiagnosticDescriptor Summary = new
DiagnosticDescriptor
(
3841
internal static DiagnosticDescriptor Rule =
new
(DiagnosticId, Title, MessageFormat, Category, DiagnosticSeverity.Warning, isEnabledByDefault: true);
4075
internal static DiagnosticDescriptor Rule = new
DiagnosticDescriptor
(DiagnosticId, Title, MessageFormat, Category, DiagnosticSeverity.Warning, isEnabledByDefault: true);
4114
internal static DiagnosticDescriptor Rule = new
DiagnosticDescriptor
(DiagnosticId, Title, MessageFormat, Category, DiagnosticSeverity.Warning, isEnabledByDefault: true);
Diagnostics\GetDiagnosticsTests.cs (3)
931
public static readonly DiagnosticDescriptor Descriptor = new
DiagnosticDescriptor
(
939
public static readonly DiagnosticDescriptor DescriptorForBlockEnd = new
DiagnosticDescriptor
(
1712
public static readonly DiagnosticDescriptor Descriptor = new
DiagnosticDescriptor
("ID0001", "Title", "Message", "Category", defaultSeverity: DiagnosticSeverity.Warning, isEnabledByDefault: true);
Semantics\OutVarTests.cs (1)
18799
new
DiagnosticDescriptor
("XY0000", "Test", "Test", "Test", DiagnosticSeverity.Warning, true, "Test", "Test");
Semantics\PrimaryConstructorTests.cs (16)
3747
new
DiagnosticDescriptor
("XY0000", "Test", "Test", "Test", DiagnosticSeverity.Warning, true, "Test", "Test");
4072
new
DiagnosticDescriptor
("XY0000", "Test", "Test", "Test", DiagnosticSeverity.Warning, true, "Test", "Test");
4158
new
DiagnosticDescriptor
("XY0000", "Test", "Test", "Test", DiagnosticSeverity.Warning, true, "Test", "Test");
4307
new
DiagnosticDescriptor
("XY0000", "Test", "Test", "Test", DiagnosticSeverity.Warning, true, "Test", "Test");
4497
new
DiagnosticDescriptor
("XY0000", "Test", "Test", "Test", DiagnosticSeverity.Warning, true, "Test", "Test");
4631
new
DiagnosticDescriptor
("XY0000", "Test", "Test", "Test", DiagnosticSeverity.Warning, true, "Test", "Test");
4811
new
DiagnosticDescriptor
("XY0000", "Test", "Test", "Test", DiagnosticSeverity.Warning, true, "Test", "Test");
4956
new
DiagnosticDescriptor
("XY0000", "Test", "Test", "Test", DiagnosticSeverity.Warning, true, "Test", "Test");
5135
new
DiagnosticDescriptor
("XY0000", "Test", "Test", "Test", DiagnosticSeverity.Warning, true, "Test", "Test");
5248
new
DiagnosticDescriptor
("XY0000", "Test", "Test", "Test", DiagnosticSeverity.Warning, true, "Test", "Test");
5475
new
DiagnosticDescriptor
("XY0000", "Test", "Test", "Test", DiagnosticSeverity.Warning, true, "Test", "Test");
5562
new
DiagnosticDescriptor
("XY0000", "Test", "Test", "Test", DiagnosticSeverity.Warning, true, "Test", "Test");
5675
new
DiagnosticDescriptor
("XY0000", "Test", "Test", "Test", DiagnosticSeverity.Warning, true, "Test", "Test");
5772
new
DiagnosticDescriptor
("XY0000", "Test", "Test", "Test", DiagnosticSeverity.Warning, true, "Test", "Test");
5830
new
DiagnosticDescriptor
("XY0000", "Test", "Test", "Test", DiagnosticSeverity.Warning, true, "Test", "Test");
5923
new
DiagnosticDescriptor
("XY0000", "Test", "Test", "Test", DiagnosticSeverity.Warning, true, "Test", "Test");
Semantics\RecordTests.cs (9)
26232
new
DiagnosticDescriptor
("XY0000", "Test", "Test", "Test", DiagnosticSeverity.Warning, true, "Test", "Test");
26555
new
DiagnosticDescriptor
("XY0000", "Test", "Test", "Test", DiagnosticSeverity.Warning, true, "Test", "Test");
26650
new
DiagnosticDescriptor
("XY0000", "Test", "Test", "Test", DiagnosticSeverity.Warning, true, "Test", "Test");
26815
new
DiagnosticDescriptor
("XY0000", "Test", "Test", "Test", DiagnosticSeverity.Warning, true, "Test", "Test");
27005
new
DiagnosticDescriptor
("XY0000", "Test", "Test", "Test", DiagnosticSeverity.Warning, true, "Test", "Test");
27139
new
DiagnosticDescriptor
("XY0000", "Test", "Test", "Test", DiagnosticSeverity.Warning, true, "Test", "Test");
27319
new
DiagnosticDescriptor
("XY0000", "Test", "Test", "Test", DiagnosticSeverity.Warning, true, "Test", "Test");
27464
new
DiagnosticDescriptor
("XY0000", "Test", "Test", "Test", DiagnosticSeverity.Warning, true, "Test", "Test");
27647
new
DiagnosticDescriptor
("XY0000", "Test", "Test", "Test", DiagnosticSeverity.Warning, true, "Test", "Test");
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (18)
ConvertToRecord\ConvertToRecordCodeRefactoringTests.cs (1)
4753
=> ImmutableArray.Create(new
DiagnosticDescriptor
(
Diagnostics\Configuration\ConfigureSeverity\AllAnalyzersSeverityConfigurationTests.cs (1)
25
private static readonly DiagnosticDescriptor Rule = new
DiagnosticDescriptor
(
Diagnostics\Configuration\ConfigureSeverity\CategoryBasedSeverityConfigurationTests.cs (1)
25
private static readonly DiagnosticDescriptor Rule = new
DiagnosticDescriptor
(
Diagnostics\Configuration\ConfigureSeverity\DotNetDiagnosticSeverityBasedSeverityConfigurationTests.cs (1)
25
private static readonly DiagnosticDescriptor Rule = new
DiagnosticDescriptor
(
Diagnostics\Suppression\RemoveSuppressionTests.cs (1)
30
new
DiagnosticDescriptor
("InfoDiagnostic", "InfoDiagnostic Title", "InfoDiagnostic", "InfoDiagnostic", DiagnosticSeverity.Info, isEnabledByDefault: true);
Diagnostics\Suppression\RemoveUnnecessaryPragmaSuppressionsTests.cs (3)
57
new
DiagnosticDescriptor
("Analyzer0168", "Variable is declared but never used", "Message", "Category", DiagnosticSeverity.Warning, isEnabledByDefault: true);
59
new
DiagnosticDescriptor
("Analyzer0219", "Variable is assigned but its value is never used", "Message", "Category", DiagnosticSeverity.Warning, isEnabledByDefault: true);
1298
new
(DiagnosticId, "NonLocalDiagnosticTitle", "NonLocalDiagnosticMessage", "NonLocalDiagnosticCategory", DiagnosticSeverity.Warning, isEnabledByDefault: true);
Diagnostics\Suppression\SuppressionTest_FixMultipleTests.cs (2)
39
new
DiagnosticDescriptor
("InfoDiagnostic", "InfoDiagnostic Title", "InfoDiagnostic", "InfoDiagnostic", DiagnosticSeverity.Info, isEnabledByDefault: true);
41
new
DiagnosticDescriptor
("InfoDiagnostic2", "InfoDiagnostic2 Title", "InfoDiagnostic2", "InfoDiagnostic2", DiagnosticSeverity.Info, isEnabledByDefault: true);
Diagnostics\Suppression\SuppressionTests.cs (7)
693
new
DiagnosticDescriptor
("InfoDiagnostic", "InfoDiagnostic Title", "InfoDiagnostic", "InfoDiagnostic", DiagnosticSeverity.Info, isEnabledByDefault: true);
803
new
DiagnosticDescriptor
("ErrorDiagnostic", "ErrorDiagnostic", "ErrorDiagnostic", "ErrorDiagnostic", DiagnosticSeverity.Error, isEnabledByDefault: true);
866
new
DiagnosticDescriptor
("@~DiagnosticWithBadId", "DiagnosticWithBadId", "DiagnosticWithBadId", "DiagnosticWithBadId", DiagnosticSeverity.Info, isEnabledByDefault: true);
916
new
DiagnosticDescriptor
("InfoDiagnostic", "InfoDiagnostic Title", "InfoDiagnostic", "InfoDiagnostic", DiagnosticSeverity.Info, isEnabledByDefault: true);
1057
new
("InfoDiagnostic", "InfoDiagnostic", "InfoDiagnostic", "InfoDiagnostic", DiagnosticSeverity.Info, isEnabledByDefault: true);
2057
new
("InfoDiagnostic", "InfoDiagnostic", "InfoDiagnostic", "InfoDiagnostic", DiagnosticSeverity.Info, isEnabledByDefault: true);
2452
new
("NoLocationDiagnostic", "NoLocationDiagnostic", "NoLocationDiagnostic", "NoLocationDiagnostic", DiagnosticSeverity.Info, isEnabledByDefault: true);
src\Analyzers\CSharp\Tests\ConvertToRecord\ConvertToRecordCodeFixTests.cs (1)
164
=> ImmutableArray.Create(new
DiagnosticDescriptor
(
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (30)
Semantics\ColorColorTests.cs (1)
1771
new
DiagnosticDescriptor
("XY0000", "Test", "Test", "Test", DiagnosticSeverity.Warning, true, "Test", "Test");
Semantics\RecordStructTests.cs (8)
5947
new
DiagnosticDescriptor
("XY0000", "Test", "Test", "Test", DiagnosticSeverity.Warning, true, "Test", "Test");
6176
new
DiagnosticDescriptor
("XY0000", "Test", "Test", "Test", DiagnosticSeverity.Warning, true, "Test", "Test");
6272
new
DiagnosticDescriptor
("XY0000", "Test", "Test", "Test", DiagnosticSeverity.Warning, true, "Test", "Test");
6401
new
DiagnosticDescriptor
("XY0000", "Test", "Test", "Test", DiagnosticSeverity.Warning, true, "Test", "Test");
6498
new
DiagnosticDescriptor
("XY0000", "Test", "Test", "Test", DiagnosticSeverity.Warning, true, "Test", "Test");
6556
new
DiagnosticDescriptor
("XY0000", "Test", "Test", "Test", DiagnosticSeverity.Warning, true, "Test", "Test");
6649
new
DiagnosticDescriptor
("XY0000", "Test", "Test", "Test", DiagnosticSeverity.Warning, true, "Test", "Test");
6810
new
DiagnosticDescriptor
("XY0000", "Test", "Test", "Test", DiagnosticSeverity.Warning, true, "Test", "Test");
Semantics\TopLevelStatementsTests.cs (13)
6424
new
DiagnosticDescriptor
("XY0000", "Test", "Test", "Test", DiagnosticSeverity.Warning, true, "Test", "Test");
6523
new
DiagnosticDescriptor
("XY0000", "Test", "Test", "Test", DiagnosticSeverity.Warning, true, "Test", "Test");
6598
new
DiagnosticDescriptor
("XY0000", "Test", "Test", "Test", DiagnosticSeverity.Warning, true, "Test", "Test");
6707
new
DiagnosticDescriptor
("XY0000", "Test", "Test", "Test", DiagnosticSeverity.Warning, true, "Test", "Test");
6788
new
DiagnosticDescriptor
("XY0000", "Test", "Test", "Test", DiagnosticSeverity.Warning, true, "Test", "Test");
6846
new
DiagnosticDescriptor
("XY0000", "Test", "Test", "Test", DiagnosticSeverity.Warning, true, "Test", "Test");
6904
new
DiagnosticDescriptor
("XY0000", "Test", "Test", "Test", DiagnosticSeverity.Warning, true, "Test", "Test");
6972
new
DiagnosticDescriptor
("XY0000", "Test", "Test", "Test", DiagnosticSeverity.Warning, true, "Test", "Test");
7052
new
DiagnosticDescriptor
("XY0000", "Test", "Test", "Test", DiagnosticSeverity.Warning, true, "Test", "Test");
7168
new
DiagnosticDescriptor
("XY0000", "Test", "Test", "Test", DiagnosticSeverity.Warning, true, "Test", "Test");
7262
new
DiagnosticDescriptor
("XY0000", "Test", "Test", "Test", DiagnosticSeverity.Warning, true, "Test", "Test");
7334
new
DiagnosticDescriptor
("XY0000", "Test", "Test", "Test", DiagnosticSeverity.Warning, true, "Test", "Test");
7401
new
DiagnosticDescriptor
("XY0000", "Test", "Test", "Test", DiagnosticSeverity.Warning, true, "Test", "Test");
SourceGeneration\GeneratorDriverTests.cs (8)
178
new
DiagnosticDescriptor
("XY0000", "Test", "Test", "Test", DiagnosticSeverity.Warning, true, "Test", "Test");
433
DiagnosticDescriptor generatorDiagnostic = new
DiagnosticDescriptor
("TG001", "Test Diagnostic", description, "Generators", DiagnosticSeverity.Warning, isEnabledByDefault: true, description: description);
662
DiagnosticDescriptor generatorDiagnostic1 = new
DiagnosticDescriptor
("TG001", "Test Diagnostic", description, "Generators", DiagnosticSeverity.Warning, isEnabledByDefault: true, description: description);
663
DiagnosticDescriptor generatorDiagnostic2 = new
DiagnosticDescriptor
("TG002", "Test Diagnostic", description, "Generators", DiagnosticSeverity.Warning, isEnabledByDefault: true, description: description);
664
DiagnosticDescriptor generatorDiagnostic3 = new
DiagnosticDescriptor
("TG003", "Test Diagnostic", description, "Generators", DiagnosticSeverity.Warning, isEnabledByDefault: true, description: description);
709
DiagnosticDescriptor generatorDiagnostic1 = new
DiagnosticDescriptor
("TG001", "Test Diagnostic", description, "Generators", DiagnosticSeverity.Warning, isEnabledByDefault: true, description: description);
710
DiagnosticDescriptor generatorDiagnostic2 = new
DiagnosticDescriptor
("TG002", "Test Diagnostic", description, "Generators", DiagnosticSeverity.Warning, isEnabledByDefault: true, description: description);
711
DiagnosticDescriptor generatorDiagnostic3 = new
DiagnosticDescriptor
("TG003", "Test Diagnostic", description, "Generators", DiagnosticSeverity.Warning, isEnabledByDefault: true, description: description);
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (4)
Symbols\Source\NullablePublicAPITests.cs (4)
1157
private static readonly DiagnosticDescriptor s_descriptor1 = new
DiagnosticDescriptor
(id: "CA9999_NullabilityPrinter", title: "CA9999_NullabilityPrinter", messageFormat: "Nullability of '{0}' is '{1}':'{2}'. Speculative flow state is '{3}'", category: "Test", defaultSeverity: DiagnosticSeverity.Warning, isEnabledByDefault: true);
1158
private static readonly DiagnosticDescriptor s_descriptor2 = new
DiagnosticDescriptor
(id: "CA9998_NullabilityPrinter", title: "CA9998_NullabilityPrinter", messageFormat: "Declared nullability of '{0}' is '{1}'", category: "Test", defaultSeverity: DiagnosticSeverity.Warning, isEnabledByDefault: true);
1779
new
DiagnosticDescriptor
("XY0000", "Test", "Test", "Test", DiagnosticSeverity.Warning, true, "Test", "Test");
4835
new
DiagnosticDescriptor
("XY0000", "Test", "Test", "Test", DiagnosticSeverity.Warning, true, "Test", "Test");
Microsoft.CodeAnalysis.EditorFeatures.Test.Utilities (1)
Workspaces\NoCompilationDocumentDiagnosticAnalyzer.cs (1)
19
public static readonly DiagnosticDescriptor Descriptor = new
DiagnosticDescriptor
(
Microsoft.CodeAnalysis.EditorFeatures.UnitTests (14)
CodeFixes\CodeFixServiceTests.cs (4)
524
var descriptor = new
DiagnosticDescriptor
(diagnosticId, "MockDiagnostic", "MockDiagnostic", category, DiagnosticSeverity.Warning, isEnabledByDefault: true);
605
private readonly DiagnosticDescriptor s_descriptor =
new
(MockFixer.Id, "Title", "Message", "Category", DiagnosticSeverity.Warning, isEnabledByDefault: true);
911
private readonly DiagnosticDescriptor _descriptor =
new
(DiagnosticId, "AdditionalFileAnalyzer", "AdditionalFileAnalyzer", "AdditionalFileAnalyzer", DiagnosticSeverity.Warning, isEnabledByDefault: true);
1171
public static readonly DiagnosticDescriptor Descriptor =
new
("ID0001", "Title", "Message", "Category", DiagnosticSeverity.Warning, isEnabledByDefault: true);
Diagnostics\DiagnosticAnalyzerServiceTests.cs (10)
915
internal static readonly DiagnosticDescriptor s_syntaxRule = new
DiagnosticDescriptor
("syntax", "test", "test", "test", DiagnosticSeverity.Error, isEnabledByDefault: true);
916
internal static readonly DiagnosticDescriptor s_semanticRule = new
DiagnosticDescriptor
("semantic", "test", "test", "test", DiagnosticSeverity.Error, isEnabledByDefault: true);
917
internal static readonly DiagnosticDescriptor s_compilationRule = new
DiagnosticDescriptor
("compilation", "test", "test", "test", DiagnosticSeverity.Error, isEnabledByDefault: true);
931
internal static readonly DiagnosticDescriptor s_syntaxRule = new
DiagnosticDescriptor
("syntax", "test", "test", "test", DiagnosticSeverity.Error, isEnabledByDefault: false);
932
internal static readonly DiagnosticDescriptor s_semanticRule = new
DiagnosticDescriptor
("semantic", "test", "test", "test", DiagnosticSeverity.Error, isEnabledByDefault: false);
933
internal static readonly DiagnosticDescriptor s_compilationRule = new
DiagnosticDescriptor
("compilation", "test", "test", "test", DiagnosticSeverity.Error, isEnabledByDefault: false);
947
internal static readonly DiagnosticDescriptor s_syntaxRule = new
DiagnosticDescriptor
("syntax", "test", "test", "test", DiagnosticSeverity.Error, isEnabledByDefault: true);
1009
internal static readonly DiagnosticDescriptor s_syntaxRule = new
DiagnosticDescriptor
("leak", "test", "test", "test", DiagnosticSeverity.Error, isEnabledByDefault: true);
1025
private static readonly DiagnosticDescriptor s_rule = new
DiagnosticDescriptor
("project", "test", "test", "test", DiagnosticSeverity.Error, isEnabledByDefault: true);
1037
=> _supportedDiagnostics = ImmutableArray.Create(new
DiagnosticDescriptor
(DiagnosticId, "test", "test", "test", defaultSeverity, isEnabledByDefault: true));
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (11)
CodeFixes\CodeFixServiceTests.vb (1)
175
Public ReadOnly Descriptor As DiagnosticDescriptor = New
DiagnosticDescriptor
("TEST1111",
Diagnostics\AdditionalFileDiagnosticsTests.vb (1)
68
Public Shared Rule As New
DiagnosticDescriptor
("OA1001", "Options test", "Serialization support has not been requested", "Test", DiagnosticSeverity.Error, True)
Diagnostics\DiagnosticServiceTests.vb (9)
1248
Public Shared Descriptor1 As New
DiagnosticDescriptor
("MustOverrideMethodDiagnostic", "DummyDescription", "DummyMessage", "DummyCategory", DiagnosticSeverity.Warning, isEnabledByDefault:=True)
1367
Public Shared Descriptor1 As New
DiagnosticDescriptor
("FieldDeclarationDiagnostic", "DummyDescription", "{0}", "DummyCategory", DiagnosticSeverity.Warning, isEnabledByDefault:=True)
1443
Public Shared Descriptor As DiagnosticDescriptor = New
DiagnosticDescriptor
("CompilationAnalyzerWithAnalyzerOptionsDiagnostic",
1472
Public Shared ReadOnly Descriptor As DiagnosticDescriptor = New
DiagnosticDescriptor
("XX0000",
1516
Descriptor = New
DiagnosticDescriptor
(
1758
Public Shared Descriptor As DiagnosticDescriptor = New
DiagnosticDescriptor
("StatefulCompilationAnalyzerDiagnostic",
1871
Public Shared Descriptor As DiagnosticDescriptor = New
DiagnosticDescriptor
("MethodSymbolDiagnostic",
2381
Public Property Descriptor As New
DiagnosticDescriptor
("ID0001", "Title", "Message", "Category", DiagnosticSeverity.Warning, isEnabledByDefault:=True)
2496
Public Shared s_descriptor As DiagnosticDescriptor = New
DiagnosticDescriptor
("ID0001", "Title", "Message", "Category", DiagnosticSeverity.Warning, isEnabledByDefault:=True)
Microsoft.CodeAnalysis.ExternalAccess.FSharp (4)
Internal\Diagnostics\FSharpDocumentDiagnosticAnalyzer.cs (1)
62
dummyDescriptors.Add(new
DiagnosticDescriptor
(String.Format("FS{0:D4}", i), String.Empty, String.Empty, String.Empty, DiagnosticSeverity.Error, true, null, null));
Internal\Diagnostics\FSharpSimplifyNameDiagnosticAnalyzer.cs (1)
45
new
DiagnosticDescriptor
(
Internal\Diagnostics\FSharpUnusedDeclarationsAnalyzer.cs (1)
47
new
DiagnosticDescriptor
(
Internal\Diagnostics\FSharpUnusedOpensDiagnosticAnalyzer.cs (1)
42
new
DiagnosticDescriptor
(
Microsoft.CodeAnalysis.LanguageServer.Protocol (1)
Features\Diagnostics\DocumentAnalysisExecutor_Helpers.cs (1)
63
var descriptor = new
DiagnosticDescriptor
(AnalyzerExceptionDiagnosticId,
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (7)
Diagnostics\AbstractPullDiagnosticTestsBase.cs (1)
374
public static readonly DiagnosticDescriptor Descriptor = new
DiagnosticDescriptor
(
Diagnostics\AdditionalFileDiagnosticsTests.cs (1)
126
private readonly DiagnosticDescriptor _descriptor =
new
(Id, "MockAdditionalDiagnostic", "MockAdditionalDiagnostic", "InternalCategory", DiagnosticSeverity.Warning, isEnabledByDefault: true, helpLinkUri: "https://github.com/dotnet/roslyn");
Diagnostics\BuildOnlyDiagnosticIdsHandlerTests.cs (1)
104
private static readonly DiagnosticDescriptor s_descriptor =
new
(Id, "Title", "Message", "Category", DiagnosticSeverity.Warning, isEnabledByDefault: true);
Diagnostics\NonLocalDiagnosticTests.cs (1)
78
public static readonly DiagnosticDescriptor NonLocalDescriptor =
new
("NonLocal0001", "Title1", "NonLocal0001", "Category", DiagnosticSeverity.Warning, isEnabledByDefault: true);
Diagnostics\PullDiagnosticTests.cs (2)
130
private readonly DiagnosticDescriptor _descriptor =
new
(RuleId, "Title", "Message", "Category", DiagnosticSeverity.Warning, isEnabledByDefault: true);
144
private readonly DiagnosticDescriptor _descriptor =
new
(RuleId, "Title", "Message", "Category", DiagnosticSeverity.Warning, isEnabledByDefault: true);
Diagnostics\WorkspaceProjectDiagnosticsTests.cs (1)
75
private readonly DiagnosticDescriptor _descriptor =
new
(Id, "MockProjectDiagnostic", "MockProjectDiagnostic", "InternalCategory", DiagnosticSeverity.Warning, isEnabledByDefault: true, helpLinkUri: "https://github.com/dotnet/roslyn");
Microsoft.CodeAnalysis.Test.Utilities (133)
Diagnostics\CommonDiagnosticAnalyzers.cs (58)
31
public static readonly DiagnosticDescriptor Descriptor1 = new
DiagnosticDescriptor
(
42
public static readonly DiagnosticDescriptor Descriptor2 = new
DiagnosticDescriptor
(
533
public static readonly DiagnosticDescriptor EnabledRule = new
DiagnosticDescriptor
(
542
public static readonly DiagnosticDescriptor DisabledRule = new
DiagnosticDescriptor
(
582
public static readonly DiagnosticDescriptor CodeBlockTopLevelRule = new
DiagnosticDescriptor
(
590
public static readonly DiagnosticDescriptor CodeBlockPerCompilationRule = new
DiagnosticDescriptor
(
641
public static readonly DiagnosticDescriptor DiagnosticDescriptor = new
DiagnosticDescriptor
(
675
new
DiagnosticDescriptor
(DiagnosticId, Title, Message,
714
new
DiagnosticDescriptor
(DiagnosticId, Title, Message,
735
public static readonly DiagnosticDescriptor DummyRule = new
DiagnosticDescriptor
(
750
public static readonly DiagnosticDescriptor Rule = new
DiagnosticDescriptor
(
781
new
DiagnosticDescriptor
(DiagnosticId, Title, Message,
813
public static readonly DiagnosticDescriptor Descriptor = new
DiagnosticDescriptor
(
842
public static readonly DiagnosticDescriptor Descriptor = new
DiagnosticDescriptor
(
863
public static readonly DiagnosticDescriptor Descriptor = new
DiagnosticDescriptor
(
886
public static readonly DiagnosticDescriptor Descriptor = new
DiagnosticDescriptor
(
922
public static readonly DiagnosticDescriptor Descriptor = new
DiagnosticDescriptor
(
1029
public static readonly DiagnosticDescriptor Rule = new
DiagnosticDescriptor
(
1057
Descriptor = new
DiagnosticDescriptor
(
1091
Descriptor = new
DiagnosticDescriptor
(
1121
public static readonly DiagnosticDescriptor Descriptor = new
DiagnosticDescriptor
(
1190
public static readonly DiagnosticDescriptor Descriptor = new
DiagnosticDescriptor
(
1232
public static readonly DiagnosticDescriptor Descriptor = new
DiagnosticDescriptor
(
1377
public static readonly DiagnosticDescriptor Descriptor = new
DiagnosticDescriptor
(
1403
public static readonly DiagnosticDescriptor Descriptor = new
DiagnosticDescriptor
(
1453
public static readonly DiagnosticDescriptor Descriptor = new
DiagnosticDescriptor
(
1478
public static readonly DiagnosticDescriptor Warning = new
DiagnosticDescriptor
(
1486
public static readonly DiagnosticDescriptor Error = new
DiagnosticDescriptor
(
1494
public static readonly DiagnosticDescriptor Summary = new
DiagnosticDescriptor
(
1502
public static readonly DiagnosticDescriptor Summary2 = new
DiagnosticDescriptor
(
1683
public static readonly DiagnosticDescriptor Rule = new
DiagnosticDescriptor
(
1723
public static readonly DiagnosticDescriptor GeneratedCodeDescriptor = new
DiagnosticDescriptor
(
1731
public static readonly DiagnosticDescriptor NonGeneratedCodeDescriptor = new
DiagnosticDescriptor
(
1739
public static readonly DiagnosticDescriptor UniqueTextFileDescriptor = new
DiagnosticDescriptor
(
1747
public static readonly DiagnosticDescriptor NumberOfUniqueTextFileDescriptor = new
DiagnosticDescriptor
(
1847
public static readonly DiagnosticDescriptor ParameterDescriptor = new
DiagnosticDescriptor
(
1887
public static readonly DiagnosticDescriptor SymbolStartTopLevelRule = new
DiagnosticDescriptor
(
1895
public static readonly DiagnosticDescriptor SymbolStartCompilationLevelRule = new
DiagnosticDescriptor
(
1903
public static readonly DiagnosticDescriptor SymbolStartedEndedDifferRule = new
DiagnosticDescriptor
(
1911
public static readonly DiagnosticDescriptor SymbolStartedOrderingRule = new
DiagnosticDescriptor
(
1919
public static readonly DiagnosticDescriptor SymbolEndedOrderingRule = new
DiagnosticDescriptor
(
1927
public static readonly DiagnosticDescriptor OperationOrderingRule = new
DiagnosticDescriptor
(
1935
public static readonly DiagnosticDescriptor DuplicateStartActionRule = new
DiagnosticDescriptor
(
1943
public static readonly DiagnosticDescriptor DuplicateEndActionRule = new
DiagnosticDescriptor
(
1951
public static readonly DiagnosticDescriptor OperationRule = new
DiagnosticDescriptor
(
2406
_rule = new
DiagnosticDescriptor
(
2471
Descriptor = new
DiagnosticDescriptor
(
2517
Descriptor = new
DiagnosticDescriptor
(
2552
private static readonly DiagnosticDescriptor s_descriptor = new
DiagnosticDescriptor
(
2581
Descriptor = new
DiagnosticDescriptor
(
2627
Descriptor = new
DiagnosticDescriptor
(
2669
private static readonly DiagnosticDescriptor s_descriptor = new
DiagnosticDescriptor
(
2705
private static readonly DiagnosticDescriptor s_descriptor =
new
("ID0001", "Title", "{0}", "Category", DiagnosticSeverity.Warning, isEnabledByDefault: true);
2864
Descriptor = new
DiagnosticDescriptor
(
2908
new
DiagnosticDescriptor
(DiagnosticId, "test", "test", "test", DiagnosticSeverity.Warning, isEnabledByDefault: true);
2975
private static readonly DiagnosticDescriptor s_descriptor =
new
("ID0001", "Title", "Message", "Category", DiagnosticSeverity.Warning, isEnabledByDefault: true);
3077
private static readonly DiagnosticDescriptor s_descriptor = new
DiagnosticDescriptor
(
3226
public static readonly DiagnosticDescriptor _descriptor = new
DiagnosticDescriptor
(
Diagnostics\CouldHaveMoreSpecificTypeAnalyzer.cs (2)
20
public static readonly DiagnosticDescriptor LocalCouldHaveMoreSpecificTypeDescriptor = new
DiagnosticDescriptor
(
28
public static readonly DiagnosticDescriptor FieldCouldHaveMoreSpecificTypeDescriptor = new
DiagnosticDescriptor
(
Diagnostics\FieldCouldBeReadOnlyAnalyzer.cs (1)
20
public static readonly DiagnosticDescriptor FieldCouldBeReadOnlyDescriptor = new
DiagnosticDescriptor
(
Diagnostics\LocalCouldBeConstAnalyzer.cs (1)
20
public static readonly DiagnosticDescriptor LocalCouldBeConstDescriptor = new
DiagnosticDescriptor
(
Diagnostics\OperationTestAnalyzer.cs (68)
22
public static readonly DiagnosticDescriptor InvalidExpressionDescriptor = new
DiagnosticDescriptor
(
30
public static readonly DiagnosticDescriptor InvalidStatementDescriptor = new
DiagnosticDescriptor
(
38
public static readonly DiagnosticDescriptor IsInvalidDescriptor = new
DiagnosticDescriptor
(
84
public static readonly DiagnosticDescriptor ExpressionDescriptor = new
DiagnosticDescriptor
(
125
public static readonly DiagnosticDescriptor BigForDescriptor = new
DiagnosticDescriptor
(
298
public static readonly DiagnosticDescriptor SparseSwitchDescriptor = new
DiagnosticDescriptor
(
306
public static readonly DiagnosticDescriptor NoDefaultSwitchDescriptor = new
DiagnosticDescriptor
(
314
public static readonly DiagnosticDescriptor OnlyDefaultSwitchDescriptor = new
DiagnosticDescriptor
(
494
public static readonly DiagnosticDescriptor BigParamArrayArgumentsDescriptor = new
DiagnosticDescriptor
(
502
public static readonly DiagnosticDescriptor OutOfNumericalOrderArgumentsDescriptor = new
DiagnosticDescriptor
(
510
public static readonly DiagnosticDescriptor UseDefaultArgumentDescriptor = new
DiagnosticDescriptor
(
518
public static readonly DiagnosticDescriptor InvalidArgumentDescriptor = new
DiagnosticDescriptor
(
611
public static readonly DiagnosticDescriptor SeventeenDescriptor = new
DiagnosticDescriptor
(
648
public static readonly DiagnosticDescriptor NullArgumentsDescriptor = new
DiagnosticDescriptor
(
688
public static readonly DiagnosticDescriptor DoNotUseFieldInitializerDescriptor = new
DiagnosticDescriptor
(
696
public static readonly DiagnosticDescriptor DoNotUsePropertyInitializerDescriptor = new
DiagnosticDescriptor
(
734
public static readonly DiagnosticDescriptor DoNotUseMemberAssignmentDescriptor = new
DiagnosticDescriptor
(
775
public static readonly DiagnosticDescriptor DoNotUseLargeListOfArrayInitializersDescriptor = new
DiagnosticDescriptor
(
815
public static readonly DiagnosticDescriptor TooManyLocalVarDeclarationsDescriptor = new
DiagnosticDescriptor
(
823
public static readonly DiagnosticDescriptor LocalVarInitializedDeclarationDescriptor = new
DiagnosticDescriptor
(
872
public static readonly DiagnosticDescriptor HasDefaultCaseDescriptor = new
DiagnosticDescriptor
(
880
public static readonly DiagnosticDescriptor MultipleCaseClausesDescriptor = new
DiagnosticDescriptor
(
930
public static readonly DiagnosticDescriptor ImplicitInstanceDescriptor = new
DiagnosticDescriptor
(
938
public static readonly DiagnosticDescriptor ExplicitInstanceDescriptor = new
DiagnosticDescriptor
(
964
public static readonly DiagnosticDescriptor EventReferenceDescriptor = new
DiagnosticDescriptor
(
972
public static readonly DiagnosticDescriptor InvalidEventDescriptor = new
DiagnosticDescriptor
(
980
public static readonly DiagnosticDescriptor HandlerAddedDescriptor = new
DiagnosticDescriptor
(
988
public static readonly DiagnosticDescriptor HandlerRemovedDescriptor = new
DiagnosticDescriptor
(
996
public static readonly DiagnosticDescriptor PropertyReferenceDescriptor = new
DiagnosticDescriptor
(
1004
public static readonly DiagnosticDescriptor FieldReferenceDescriptor = new
DiagnosticDescriptor
(
1012
public static readonly DiagnosticDescriptor MethodBindingDescriptor = new
DiagnosticDescriptor
(
1077
public static readonly DiagnosticDescriptor LongParamsDescriptor = new
DiagnosticDescriptor
(
1085
public static readonly DiagnosticDescriptor InvalidConstructorDescriptor = new
DiagnosticDescriptor
(
1166
public static readonly DiagnosticDescriptor EqualsValueDescriptor = new
DiagnosticDescriptor
(
1208
public static readonly DiagnosticDescriptor NoneOperationDescriptor = new
DiagnosticDescriptor
(
1237
public static readonly DiagnosticDescriptor AddressOfDescriptor = new
DiagnosticDescriptor
(
1245
public static readonly DiagnosticDescriptor InvalidAddressOfReferenceDescriptor = new
DiagnosticDescriptor
(
1278
public static readonly DiagnosticDescriptor LambdaExpressionDescriptor = new
DiagnosticDescriptor
(
1286
public static readonly DiagnosticDescriptor TooManyStatementsInLambdaExpressionDescriptor = new
DiagnosticDescriptor
(
1295
public static readonly DiagnosticDescriptor NoneOperationInLambdaExpressionDescriptor = new
DiagnosticDescriptor
(
1347
public static readonly DiagnosticDescriptor StaticMemberDescriptor = new
DiagnosticDescriptor
(
1356
public static readonly DiagnosticDescriptor StaticMemberWithInstanceDescriptor = new
DiagnosticDescriptor
(
1426
public static readonly DiagnosticDescriptor LabelDescriptor = new
DiagnosticDescriptor
(
1434
public static readonly DiagnosticDescriptor GotoDescriptor = new
DiagnosticDescriptor
(
1476
public static readonly DiagnosticDescriptor OperatorAddMethodDescriptor = new
DiagnosticDescriptor
(
1484
public static readonly DiagnosticDescriptor OperatorMinusMethodDescriptor = new
DiagnosticDescriptor
(
1492
public static readonly DiagnosticDescriptor DoubleMultiplyDescriptor = new
DiagnosticDescriptor
(
1500
public static readonly DiagnosticDescriptor BooleanNotDescriptor = new
DiagnosticDescriptor
(
1553
public static readonly DiagnosticDescriptor BinaryUserDefinedOperatorDescriptor = new
DiagnosticDescriptor
(
1584
public static readonly DiagnosticDescriptor BinaryOperatorDescriptor = new
DiagnosticDescriptor
(
1592
public static readonly DiagnosticDescriptor UnaryOperatorDescriptor = new
DiagnosticDescriptor
(
1666
public static readonly DiagnosticDescriptor NullOperationSyntaxDescriptor = new
DiagnosticDescriptor
(
1676
public static readonly DiagnosticDescriptor ParamsArrayOperationDescriptor = new
DiagnosticDescriptor
(
1752
public static readonly DiagnosticDescriptor InvalidBinaryDescriptor = new
DiagnosticDescriptor
(
1760
public static readonly DiagnosticDescriptor InvalidUnaryDescriptor = new
DiagnosticDescriptor
(
1768
public static readonly DiagnosticDescriptor InvalidIncrementDescriptor = new
DiagnosticDescriptor
(
1819
public static readonly DiagnosticDescriptor ConditionalAccessOperationDescriptor = new
DiagnosticDescriptor
(
1827
public static readonly DiagnosticDescriptor ConditionalAccessInstanceOperationDescriptor = new
DiagnosticDescriptor
(
1876
public static readonly DiagnosticDescriptor InvalidConversionExpressionDescriptor = new
DiagnosticDescriptor
(
1908
public static readonly DiagnosticDescriptor ForLoopConditionCrashDescriptor = new
DiagnosticDescriptor
(
1947
public static readonly DiagnosticDescriptor UnaryTrueDescriptor = new
DiagnosticDescriptor
(
1955
public static readonly DiagnosticDescriptor UnaryFalseDescriptor = new
DiagnosticDescriptor
(
1989
public static readonly DiagnosticDescriptor AssignmentOperationDescriptor = new
DiagnosticDescriptor
(
1997
public static readonly DiagnosticDescriptor AssignmentSyntaxDescriptor = new
DiagnosticDescriptor
(
2033
public static readonly DiagnosticDescriptor LiteralDescriptor = new
DiagnosticDescriptor
(
2063
public static readonly DiagnosticDescriptor OperationActionDescriptor = new
DiagnosticDescriptor
(
2091
public static readonly DiagnosticDescriptor OperationActionDescriptor = new
DiagnosticDescriptor
(
2123
public static readonly DiagnosticDescriptor GetOperationDescriptor = new
DiagnosticDescriptor
(
Diagnostics\SuppressMessageAttributeTests.DiagnosticAnalyzers.cs (1)
314
return new
DiagnosticDescriptor
(
Diagnostics\TestDiagnosticAnalyzer.cs (1)
25
new
DiagnosticDescriptor
("CA7777", "CA7777_AnalyzerTestDiagnostic", "I'm here for test purposes", "Test", DiagnosticSeverity.Warning, isEnabledByDefault: true);
SourceGeneration\TestGenerators.cs (1)
54
new
DiagnosticDescriptor
(nameof(DiagnosticProducingGenerator), "Diagnostic Title", "Diagnostic Format", "Test", DiagnosticSeverity.Error, isEnabledByDefault: true);
Microsoft.CodeAnalysis.UnitTests (16)
Diagnostics\AnalysisContextInfoTests.cs (1)
99
return new
DiagnosticDescriptor
(
Diagnostics\DiagnosticCreationTests.cs (1)
19
var descriptor = new
DiagnosticDescriptor
("ID", "Title", "MessageFormat", "Category", defaultSeverity, isEnabledByDefault: true);
Diagnostics\DiagnosticLocalizationTests.cs (1)
44
var descriptor = new
DiagnosticDescriptor
(
Diagnostics\SarifErrorLoggerTests.cs (13)
38
var descriptor = new
DiagnosticDescriptor
("TST", "_TST_", "", "", DiagnosticSeverity.Error, false);
55
new
DiagnosticDescriptor
("TST001-001", "_TST001-001_", "", "", DiagnosticSeverity.Warning, true),
56
new
DiagnosticDescriptor
("TST001", "_TST001_", "", "", DiagnosticSeverity.Warning, true),
57
new
DiagnosticDescriptor
("TST001", "_TST001-002_", "", "", DiagnosticSeverity.Warning, true),
58
new
DiagnosticDescriptor
("TST001", "_TST001-003_", "", "", DiagnosticSeverity.Warning, true),
61
new
DiagnosticDescriptor
("TST002", "", "", "", DiagnosticSeverity.Warning, true),
62
new
DiagnosticDescriptor
("TST002", "", "", "", DiagnosticSeverity.Warning, true),
65
new
DiagnosticDescriptor
("TST002", "", "messageFormat", "", DiagnosticSeverity.Warning, true),
68
new
DiagnosticDescriptor
("TST002", "title_001", "", "", DiagnosticSeverity.Warning, true),
69
new
DiagnosticDescriptor
("TST002", "", "", "category_002", DiagnosticSeverity.Warning, true),
70
new
DiagnosticDescriptor
("TST002", "", "", "", DiagnosticSeverity.Error /*003*/, true),
71
new
DiagnosticDescriptor
("TST002", "", "", "", DiagnosticSeverity.Warning, isEnabledByDefault: false /*004*/),
72
new
DiagnosticDescriptor
("TST002", "", "", "", DiagnosticSeverity.Warning, true, "description_005"),
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (9)
CommandLineTests.vb (9)
10975
Friend Shared ReadOnly Hidden01 As DiagnosticDescriptor = New
DiagnosticDescriptor
("Hidden01", "", "Throwing a diagnostic for #ExternalSource", "", DiagnosticSeverity.Hidden, isEnabledByDefault:=True)
10999
Friend Shared ReadOnly Info01 As DiagnosticDescriptor = New
DiagnosticDescriptor
("Info01", "", "Throwing a diagnostic for #Enable", "", DiagnosticSeverity.Info, isEnabledByDefault:=True)
11000
Friend Shared ReadOnly Info02 As DiagnosticDescriptor = New
DiagnosticDescriptor
("Info02", "", "Throwing a diagnostic for something else", "", DiagnosticSeverity.Info, isEnabledByDefault:=True)
11024
Friend Shared ReadOnly Warning01 As DiagnosticDescriptor = New
DiagnosticDescriptor
("Warning01", "", "Throwing a diagnostic for types declared", "", DiagnosticSeverity.Warning, isEnabledByDefault:=True)
11025
Friend Shared ReadOnly Warning02 As DiagnosticDescriptor = New
DiagnosticDescriptor
("Warning02", "", "Throwing a diagnostic for something else", "", DiagnosticSeverity.Warning, isEnabledByDefault:=True)
11026
Friend Shared ReadOnly Warning03 As DiagnosticDescriptor = New
DiagnosticDescriptor
("Warning03", "", "Throwing a diagnostic for types declared", "", DiagnosticSeverity.Warning, isEnabledByDefault:=True)
11050
Friend Shared ReadOnly Warning04 As DiagnosticDescriptor = New
DiagnosticDescriptor
("Warning04", "", "Throwing a diagnostic for types declared", "", DiagnosticSeverity.Warning, isEnabledByDefault:=True, helpLinkUri:="https://example.org/analyzer")
11074
Friend Shared ReadOnly Error01 As DiagnosticDescriptor = New
DiagnosticDescriptor
("Error01", "", "Throwing a diagnostic for #Disable", "", DiagnosticSeverity.Error, isEnabledByDefault:=True)
11097
Friend Shared ReadOnly Rule As DiagnosticDescriptor = New
DiagnosticDescriptor
("AdditionalFileDiagnostic", "", "Additional File Diagnostic: {0}", "", DiagnosticSeverity.Warning, isEnabledByDefault:=True)
Microsoft.CodeAnalysis.VisualBasic.Features.UnitTests (7)
Diagnostics\Configuration\ConfigureSeverity\DotNetDiagnosticSeverityBasedSeverityConfigurationTests.vb (1)
19
Private Shared ReadOnly Rule As DiagnosticDescriptor = New
DiagnosticDescriptor
(
Diagnostics\Suppression\SuppressionTests.vb (6)
697
Private ReadOnly _descriptor As New
DiagnosticDescriptor
("InfoDiagnostic", "InfoDiagnostic", "InfoDiagnostic", "InfoDiagnostic", DiagnosticSeverity.Info, isEnabledByDefault:=True)
772
Private ReadOnly _descriptor As New
DiagnosticDescriptor
("#$DiagnosticWithBadId", "DiagnosticWithBadId", "DiagnosticWithBadId", "DiagnosticWithBadId", DiagnosticSeverity.Info, isEnabledByDefault:=True)
816
Private ReadOnly _descriptor As New
DiagnosticDescriptor
("REm", "REm Title", "REm", "REm", DiagnosticSeverity.Warning, isEnabledByDefault:=True)
882
Private ReadOnly _descriptor As New
DiagnosticDescriptor
("ErrorDiagnostic", "ErrorDiagnostic", "ErrorDiagnostic", "ErrorDiagnostic", DiagnosticSeverity.[Error], isEnabledByDefault:=True)
1002
Private ReadOnly _descriptor As New
DiagnosticDescriptor
("InfoDiagnostic", "InfoDiagnostic", "InfoDiagnostic", "InfoDiagnostic", DiagnosticSeverity.Info, isEnabledByDefault:=True)
1718
Private ReadOnly _descriptor As New
DiagnosticDescriptor
("InfoDiagnostic", "InfoDiagnostic", "InfoDiagnostic", "InfoDiagnostic", DiagnosticSeverity.Info, isEnabledByDefault:=True)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (25)
Diagnostics\DiagnosticAnalyzerTests.vb (22)
27
Private Shared ReadOnly s_CA9999_UseOfVariableThatStartsWithX As DiagnosticDescriptor = New
DiagnosticDescriptor
(id:="CA9999_UseOfVariableThatStartsWithX", title:="CA9999_UseOfVariableThatStartsWithX", messageFormat:="Use of variable whose name starts with 'x': '{0}'", category:="Test", defaultSeverity:=DiagnosticSeverity.Warning, isEnabledByDefault:=True)
49
Dim noneDiagDescriptor = New
DiagnosticDescriptor
("XX0001", "DummyDescription", "DummyMessage", "DummyCategory", DiagnosticSeverity.Hidden, isEnabledByDefault:=True)
50
Dim infoDiagDescriptor = New
DiagnosticDescriptor
("XX0002", "DummyDescription", "DummyMessage", "DummyCategory", DiagnosticSeverity.Info, isEnabledByDefault:=True)
51
Dim warningDiagDescriptor = New
DiagnosticDescriptor
("XX0003", "DummyDescription", "DummyMessage", "DummyCategory", DiagnosticSeverity.Warning, isEnabledByDefault:=True)
52
Dim errorDiagDescriptor = New
DiagnosticDescriptor
("XX0004", "DummyDescription", "DummyMessage", "DummyCategory", DiagnosticSeverity.Error, isEnabledByDefault:=True)
130
Dim noneDiagDescriptor = New
DiagnosticDescriptor
("XX0001", "DummyDescription", "DummyMessage", "DummyCategory", DiagnosticSeverity.Hidden, isEnabledByDefault:=True)
131
Dim infoDiagDescriptor = New
DiagnosticDescriptor
("XX0002", "DummyDescription", "DummyMessage", "DummyCategory", DiagnosticSeverity.Info, isEnabledByDefault:=True)
132
Dim warningDiagDescriptor = New
DiagnosticDescriptor
("XX0003", "DummyDescription", "DummyMessage", "DummyCategory", DiagnosticSeverity.Warning, isEnabledByDefault:=True)
133
Dim errorDiagDescriptor = New
DiagnosticDescriptor
("XX0004", "DummyDescription", "DummyMessage", "DummyCategory", DiagnosticSeverity.[Error], isEnabledByDefault:=True)
185
Dim disabledDiagDescriptor = New
DiagnosticDescriptor
("XX001", "DummyDescription", "DummyMessage", "DummyCategory", DiagnosticSeverity.Warning, isEnabledByDefault:=False)
186
Dim enabledDiagDescriptor = New
DiagnosticDescriptor
("XX002", "DummyDescription", "DummyMessage", "DummyCategory", DiagnosticSeverity.Warning, isEnabledByDefault:=True)
215
Public Shared desc1 As New
DiagnosticDescriptor
("XX001", "DummyDescription", "DummyMessage", "DummyCategory", DiagnosticSeverity.Warning, isEnabledByDefault:=False)
216
Public Shared desc2 As New
DiagnosticDescriptor
("XX002", "DummyDescription", "DummyMessage", "DummyCategory", DiagnosticSeverity.Warning, isEnabledByDefault:=False)
231
Public Shared desc1 As New
DiagnosticDescriptor
("XX003", "DummyDescription", "DummyMessage", "DummyCategory", DiagnosticSeverity.Warning, isEnabledByDefault:=False)
232
Public Shared desc2 As New
DiagnosticDescriptor
("XX004", "DummyDescription", "DummyMessage", "DummyCategory", DiagnosticSeverity.Warning, isEnabledByDefault:=True)
265
Public Shared desc1 As New
DiagnosticDescriptor
("XX001", "DummyDescription", "DummyMessage", "DummyCategory", DiagnosticSeverity.Warning, isEnabledByDefault:=True)
303
Public Shared desc1 As New
DiagnosticDescriptor
("XX001", "DummyDescription", "DummyMessage", "DummyCategory", DiagnosticSeverity.Warning, isEnabledByDefault:=True)
348
Public Shared desc1 As New
DiagnosticDescriptor
("XX001", "DummyDescription", "DummyMessage", "DummyCategory", DiagnosticSeverity.Warning, isEnabledByDefault:=True)
497
Public Shared desc1 As New
DiagnosticDescriptor
("FieldSymbolDiagnostic", "DummyDescription", "DummyMessage", "DummyCategory", DiagnosticSeverity.Warning, isEnabledByDefault:=True)
562
Public Shared desc1 As New
DiagnosticDescriptor
("FieldDeclarationDiagnostic", "DummyDescription", "DummyMessage", "DummyCategory", DiagnosticSeverity.Warning, isEnabledByDefault:=True)
757
Dim descriptor = New
DiagnosticDescriptor
(id:="Test0001", title:="Test0001", messageFormat:="Test0001", category:="Test0001", defaultSeverity:=defaultSeverity, isEnabledByDefault:=isEnabledByDefault)
950
Public Shared ReadOnly ExpressionDescriptor As New
DiagnosticDescriptor
("Expression", "Expression", "Expression found.", "Testing", DiagnosticSeverity.Warning, isEnabledByDefault:=True)
Diagnostics\GetDiagnosticsTests.vb (3)
587
Public Shared ReadOnly Descriptor As DiagnosticDescriptor = New
DiagnosticDescriptor
("ID0001", "Title", "{0}", "Category", defaultSeverity:=DiagnosticSeverity.Warning, isEnabledByDefault:=True)
588
Public Shared ReadOnly DescriptorForBlockEnd As DiagnosticDescriptor = New
DiagnosticDescriptor
("ID0002", "Title", "Message", "Category", defaultSeverity:=DiagnosticSeverity.Warning, isEnabledByDefault:=True)
711
Public Shared ReadOnly Descriptor As New
DiagnosticDescriptor
("ID0001", "Title", "Message", "Category", defaultSeverity:=DiagnosticSeverity.Warning, isEnabledByDefault:=True)
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (4)
Parser\ParseDirectives.vb (4)
3183
New
DiagnosticDescriptor
("sOMEID", "something1", "something2", "something3", DiagnosticSeverity.Warning, isEnabledByDefault:=True),
3289
New
DiagnosticDescriptor
("__Something_123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789023456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678902345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789023456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678902345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789023456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678902345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890",
3621
New
DiagnosticDescriptor
("TestId", "something1", "something2", "something3", DiagnosticSeverity.Warning, isEnabledByDefault:=True),
3648
New
DiagnosticDescriptor
("TestId", "something1", "something2", "something3", DiagnosticSeverity.Warning, isEnabledByDefault:=True),
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
BatchFixAllProviderTests.cs (1)
57
new
DiagnosticDescriptor
("LiteralZero", "title", "message", "category", DiagnosticSeverity.Warning, isEnabledByDefault: true);
Microsoft.DotNet.CodeAnalysis (6)
Analyzers\AppContextDefaultsAnalyzer.cs (3)
27
new
DiagnosticDescriptor
(DiagnosticIds.BCL0010.ToString(), s_title, CreateDiagnosticMessage(s_defaultValueNotInitializedToTrue, DiagnosticIds.BCL0010.ToString()), s_analyzerName, DiagnosticSeverity.Error, isEnabledByDefault: true, description: s_description);
30
new
DiagnosticDescriptor
(DiagnosticIds.BCL0011.ToString(), s_title, CreateDiagnosticMessage(s_defaultValueInsideUnexpectedIfCondition, DiagnosticIds.BCL0011.ToString()), s_analyzerName, DiagnosticSeverity.Error, isEnabledByDefault: true, description: s_description);
33
new
DiagnosticDescriptor
(DiagnosticIds.BCL0012.ToString(), s_title, CreateDiagnosticMessage(s_defaultValueDefinedOutsideIfCondition, DiagnosticIds.BCL0012.ToString()), s_analyzerName, DiagnosticSeverity.Error, isEnabledByDefault: true, description: s_description);
Analyzers\MembersMustExistAnalyzer.cs (1)
26
new
DiagnosticDescriptor
(DiagnosticIds.BCL0001.ToString(), s_title, s_messageFormat, s_analyzerName, DiagnosticSeverity.Error, isEnabledByDefault: true, description: s_description, customTags: WellKnownDiagnosticTags.CompilationEnd);
Analyzers\PinvokeAnalyzer.cs (1)
24
private static DiagnosticDescriptor InvalidPinvokeCall = new
DiagnosticDescriptor
(DiagnosticIds.BCL0015.ToString(), Title, MessageFormat, AnalyzerName, DiagnosticSeverity.Error, isEnabledByDefault: true, description: Description);
Analyzers\ResourceUsageAnalyzer.cs (1)
19
private static DiagnosticDescriptor InvalidSRFormatCall = new
DiagnosticDescriptor
(DiagnosticIds.BCL0020.ToString(), Title, "", AnalyzerName, DiagnosticSeverity.Error, isEnabledByDefault: true, description: Description);
Microsoft.Extensions.Options.SourceGeneration (1)
DiagDescriptorsBase.cs (1)
21
return
new
(
Microsoft.Gen.ComplianceReports (1)
ComplianceReportsGenerator.cs (1)
92
var diagnostic = new
DiagnosticDescriptor
(
Microsoft.Gen.ContextualOptions (1)
src\Generators\Shared\DiagDescriptorsBase.cs (1)
28
return
new
(
Microsoft.Gen.Logging (1)
src\Generators\Shared\DiagDescriptorsBase.cs (1)
28
return
new
(
Microsoft.Gen.Metrics (1)
src\Generators\Shared\DiagDescriptorsBase.cs (1)
28
return
new
(
Microsoft.Gen.MetricsReports (2)
MetricsReportsGenerator.cs (1)
71
var diagnostic = new
DiagnosticDescriptor
(
src\Generators\Shared\DiagDescriptorsBase.cs (1)
28
return
new
(
Microsoft.Maui.Controls.BindingSourceGen (10)
DiagnosticsFactory.cs (10)
21
new
DiagnosticDescriptor
(
32
new
DiagnosticDescriptor
(
43
new
DiagnosticDescriptor
(
54
new
DiagnosticDescriptor
(
65
new
DiagnosticDescriptor
(
76
new
DiagnosticDescriptor
(
87
new
DiagnosticDescriptor
(
98
new
DiagnosticDescriptor
(
109
new
DiagnosticDescriptor
(
120
new
DiagnosticDescriptor
(
Microsoft.ML.CodeAnalyzer.Tests (1)
Code\RelaxTestNamingTest.cs (1)
107
public static readonly DiagnosticDescriptor Rule = new
DiagnosticDescriptor
(RelaxTestNamingSuppressor.Rule.SuppressedDiagnosticId, "Title", "Message", "Category", DiagnosticSeverity.Warning, isEnabledByDefault: true);
Microsoft.ML.InternalCodeAnalyzer (13)
BaseTestClassAnalyzer.cs (1)
25
new
DiagnosticDescriptor
(DiagnosticId, Title, Format, Category,
BestFriendAnalyzer.cs (1)
30
new
DiagnosticDescriptor
(DiagnosticId, Title, Format, Category,
BestFriendOnPublicDeclarationsAnalyzer.cs (1)
26
new
DiagnosticDescriptor
(DiagnosticId, Title, Format, Category,
ContractsCheckAnalyzer.cs (4)
33
new
DiagnosticDescriptor
(Id, Title, Format, Category,
47
new
DiagnosticDescriptor
(Id, Title, Format, Category,
58
new
DiagnosticDescriptor
(Id, Title, Format, Category,
70
new
DiagnosticDescriptor
(Id, Title, Format, Category,
InstanceInitializerAnalyzer.cs (1)
24
new
DiagnosticDescriptor
(DiagnosticId, Title, Format, Category,
NameAnalyzer.cs (2)
54
new
DiagnosticDescriptor
(Id, Title, Format, Category,
67
new
DiagnosticDescriptor
(Id, Title, Format, Category,
ParameterVariableNameAnalyzer.cs (1)
26
new
DiagnosticDescriptor
(Id, Title, Format, Category,
SingleVariableDeclarationAnalyzer.cs (1)
26
new
DiagnosticDescriptor
(DiagnosticId, Title, Format, Category,
TypeParamNameAnalyzer.cs (1)
25
new
DiagnosticDescriptor
(Id, Title, Format, Category,
Microsoft.VisualStudio.LanguageServices.CSharp.UnitTests (1)
EditorConfigSettings\DataProvider\DataProviderTests.MockAnalyzerReference.cs (1)
96
var descriptor = new
DiagnosticDescriptor
(diagnosticId, "MockDiagnostic", "MockDiagnostic", category, DiagnosticSeverity.Warning, isEnabledByDefault: true);
Microsoft.VisualStudio.LanguageServices.UnitTests (8)
SolutionExplorer\AnalyzerCommandHandlerTests.vb (1)
16
Dim descriptor = New
DiagnosticDescriptor
(
SolutionExplorer\DiagnosticDescriptorComparerTests.vb (6)
18
Dim x = New
DiagnosticDescriptor
(
26
Dim y = New
DiagnosticDescriptor
(
47
Dim x = New
DiagnosticDescriptor
(
55
Dim y = New
DiagnosticDescriptor
(
76
Dim x = New
DiagnosticDescriptor
(
84
Dim y = New
DiagnosticDescriptor
(
SolutionExplorer\DiagnosticItemTests.vb (1)
41
Return New
DiagnosticDescriptor
(
Roslyn.VisualStudio.Next.UnitTests (2)
Services\VisualStudioDiagnosticAnalyzerExecutorTests.cs (2)
266
ImmutableArray.Create(new
DiagnosticDescriptor
("test", "test", "test", "test", DiagnosticSeverity.Error, isEnabledByDefault: true));
286
ImmutableArray.Create(new
DiagnosticDescriptor
("test", "test", "test", "test", DiagnosticSeverity.Error, isEnabledByDefault: true));
System.Private.CoreLib.Generators (4)
IntrinsicsInSystemPrivateCoreLibAnalyzer.cs (4)
34
private static readonly DiagnosticDescriptor Rule = new
DiagnosticDescriptor
(DiagnosticId, Title, MessageFormat, Category, DiagnosticSeverity.Error, isEnabledByDefault: true, description: Description);
38
private static readonly DiagnosticDescriptor RuleHelper = new
DiagnosticDescriptor
(DiagnosticIdHelper, Title, MessageHelperFormat, Category, DiagnosticSeverity.Error, isEnabledByDefault: true, description: Description);
42
private static readonly DiagnosticDescriptor RuleCantParse = new
DiagnosticDescriptor
(DiagnosticIdConditionParsing, Title, MessageNonParseableConditionFormat, Category, DiagnosticSeverity.Error, isEnabledByDefault: true, description: Description);
46
private static readonly DiagnosticDescriptor RuleAttributeNotSpecificEnough = new
DiagnosticDescriptor
(DiagnosticIdAttributeNotSpecificEnough, Title, MessageAttributeNotSpecificEnoughFormat, Category, DiagnosticSeverity.Error, isEnabledByDefault: true, description: Description);