See : FP S1210: Implementing comparable operators for private types, this rule should also ignore types with the file visibility.
file readonly struct Entry(int n): IComparable<Entry> // FP, files classes should be minimal
{
private readonly int Value = n;
public int CompareTo(Entry other) => Value.CompareTo(other.Value);
}
I can confirm that private types are ignored now.
Reported by: NuGet Gallery | SonarAnalyzer.CSharp 10.23.0.137933