Open markohlebar opened 9 years ago
maybe u can find some other tools having realized this feature: like oclint? https://github.com/oclint/oclint/blob/master/oclint-rules/rules/cocoa/ObjCVerifyIsEqualHashRule.cpp
@GeekMin good point, our linter didn't pick this up :)
Sometimes it happens that a developer implements
-(BOOL)isEqual:(id)otherObject
, but then forgets to implement- (NSUInteger)hash
in that class. This can lead to hard to debug behaviour when instances of that class are used in collections. Could this be a candidate for a warning?