Ignore no_magic_numbers violations if they are in an extension of a test class (#5146)

Only works in the same file.
This commit is contained in:
Martin Redington
2023-08-05 22:07:40 +02:00
committed by GitHub
parent 85c4a3a03d
commit e9c22852e5
3 changed files with 85 additions and 8 deletions
@@ -86,7 +86,7 @@ public extension SwiftSyntaxRule {
}
/// A violation produced by `ViolationsSyntaxVisitor`s.
public struct ReasonedRuleViolation: Comparable {
public struct ReasonedRuleViolation: Comparable, Hashable {
/// The violation's position.
public let position: AbsolutePosition
/// A specific reason for the violation.