1 write to Justification
Microsoft.CodeAnalysis (1)
Diagnostic\SuppressionDescriptor.cs (1)
70
this.
Justification
= justification ?? throw new ArgumentNullException(nameof(justification));
19 references to Justification
Microsoft.CodeAnalysis (5)
CommandLine\CommonCompiler.cs (1)
567
var 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)
84
this.
Justification
.Equals(other.
Justification
);
95
Hash.Combine(this.SuppressedDiagnosticId.GetHashCode(), this.
Justification
.GetHashCode()));
Microsoft.CodeAnalysis.CSharp.CommandLine.UnitTests (8)
CommandLineTests.cs (7)
12580
suppressor.SuppressionDescriptor.
Justification
);
12620
suppressor.SuppressionDescriptor.
Justification
);
12676
suppressor.SuppressionDescriptor.
Justification
);
12744
precedenceInversionWarningSuppressor.SuppressionDescriptor.
Justification
);
12844
partialStructWarningSuppressor.SuppressionDescriptor.
Justification
);
12954
partialStructWarningSuppressor.SuppressionDescriptor.
Justification
);
13078
suppressor.SuppressionDescriptor.
Justification
);
SarifV2ErrorLoggerTests.cs (1)
647
suppressionType: $"DiagnosticSuppressor {{ Suppression Id: {SuppressorForErrorLogTest.Descriptor1.Id}, Suppression Justification: {SuppressorForErrorLogTest.Descriptor1.
Justification
} }}"),
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (6)
Diagnostics\DiagnosticSuppressorTests.cs (6)
645
Assert.Equal(suppressor.SuppressionDescriptor.
Justification
, suppression.Descriptor.
Justification
);
658
Assert.Equal(suppressor.SuppressionDescriptor.
Justification
, orderedSuppressions[0].Descriptor.
Justification
);
660
Assert.Equal(suppressor2.SuppressionDescriptor.
Justification
, orderedSuppressions[1].Descriptor.
Justification
);