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)
12569suppressor.SuppressionDescriptor.Justification); 12609suppressor.SuppressionDescriptor.Justification); 12665suppressor.SuppressionDescriptor.Justification); 12733precedenceInversionWarningSuppressor.SuppressionDescriptor.Justification); 12833partialStructWarningSuppressor.SuppressionDescriptor.Justification); 12943partialStructWarningSuppressor.SuppressionDescriptor.Justification); 13067suppressor.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)
9780suppressor.SuppressionDescriptor.Justification) 9837suppressor.SuppressionDescriptor.Justification) 9897suppressor.SuppressionDescriptor.Justification)