chore: add SlopwatchSuppressAttribute for cluster test suppressions

This commit is contained in:
Joseph Doherty
2026-03-12 23:39:07 -04:00
parent f64b7103f4
commit be1303c17b

View File

@@ -0,0 +1,12 @@
// Marker attribute recognised by the slopwatch static-analysis tool.
// Apply to a test method to suppress a specific slopwatch rule violation.
// The justification must be 20+ characters explaining why the suppression is intentional.
namespace NATS.E2E.Cluster.Tests;
[AttributeUsage(AttributeTargets.Method, AllowMultiple = true)]
public sealed class SlopwatchSuppressAttribute(string ruleId, string justification) : Attribute
{
public string RuleId { get; } = ruleId;
public string Justification { get; } = justification;
}