mirror of
https://github.com/realm/SwiftLint.git
synced 2026-06-06 20:18:40 +00:00
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user