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)
12579suppressor.SuppressionDescriptor.Justification); 12619suppressor.SuppressionDescriptor.Justification); 12675suppressor.SuppressionDescriptor.Justification); 12743precedenceInversionWarningSuppressor.SuppressionDescriptor.Justification); 12843partialStructWarningSuppressor.SuppressionDescriptor.Justification); 12953partialStructWarningSuppressor.SuppressionDescriptor.Justification); 13077suppressor.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)
9795suppressor.SuppressionDescriptor.Justification) 9852suppressor.SuppressionDescriptor.Justification) 9912suppressor.SuppressionDescriptor.Justification)