Closed iv-mexx closed 2 months ago
This isn't a false positive, Periphery correctly identifies that the property isn't read from anywhere else in your code. No tool can determine that these properties are used only for altering the hash value. You can either implement hash(into:)
or use a comment command to retain these properties.
Hi, I think I'm getting these false positives with a Strict thats
Hashable
in Periphery2.18.0
Its true,
categoryName
andtypeName
are never read explicitly, but they are factored into automatically synthesized hash function ( https://developer.apple.com/documentation/swift/hashable#Conforming-to-the-Hashable-Protocol )