1 write to Justification
Microsoft.CodeAnalysis (1)
Diagnostic\SuppressionDescriptor.cs (1)
70this.Justification = justification ?? throw new ArgumentNullException(nameof(justification));
19 references to Justification
Microsoft.CodeAnalysis (5)
CommandLine\CommonCompiler.cs (1)
567var suppressionDiag = new SuppressionDiagnostic(diag, suppression.Descriptor.Id, suppression.Descriptor.Justification);
CommandLine\SarifV2ErrorLogger.cs (1)
91.Select(suppression => $"Suppression Id: {suppression.Descriptor.Id}, Suppression Justification: {suppression.Descriptor.Justification}")
Diagnostic\SuppressionDescriptor.cs (3)
84this.Justification.Equals(other.Justification); 95Hash.Combine(this.SuppressedDiagnosticId.GetHashCode(), this.Justification.GetHashCode()));
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (8)
CommandLineTests.cs (7)
12549suppressor.SuppressionDescriptor.Justification); 12589suppressor.SuppressionDescriptor.Justification); 12645suppressor.SuppressionDescriptor.Justification); 12713precedenceInversionWarningSuppressor.SuppressionDescriptor.Justification); 12813partialStructWarningSuppressor.SuppressionDescriptor.Justification); 12923partialStructWarningSuppressor.SuppressionDescriptor.Justification); 13047suppressor.SuppressionDescriptor.Justification);
SarifV2ErrorLoggerTests.cs (1)
647suppressionType: $"DiagnosticSuppressor {{ Suppression Id: {SuppressorForErrorLogTest.Descriptor1.Id}, Suppression Justification: {SuppressorForErrorLogTest.Descriptor1.Justification} }}"),
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (3)
Diagnostics\DiagnosticSuppressorTests.cs (3)
645Assert.Equal(suppressor.SuppressionDescriptor.Justification, suppression.Descriptor.Justification); 658Assert.Equal(suppressor.SuppressionDescriptor.Justification, orderedSuppressions[0].Descriptor.Justification); 660Assert.Equal(suppressor2.SuppressionDescriptor.Justification, orderedSuppressions[1].Descriptor.Justification);
Microsoft.CodeAnalysis.VisualBasic.CommandLine.UnitTests (3)
CommandLineTests.vb (3)
9768suppressor.SuppressionDescriptor.Justification) 9825suppressor.SuppressionDescriptor.Justification) 9885suppressor.SuppressionDescriptor.Justification)