@yegor256
In Violation.Default.compareTo:
return this.vldtr.compareToIgnoreCase(other.validator());
-
Problem: This only compares the validator name, not the file, line, or message, which may not provide a meaningful ordering for violations.
-
Consequence: Sorting violations may not be stable or useful.
-
Fix: Consider comparing all relevant fields for a more robust ordering.