Objective-C - warnings for isEqual and hash
Open
new-check
objective-c
wishlist
- Dominant language
- OCaml
- Stars
- 15.7k
- Forks
- 2.1k
- Avg merge
- 19h 36m
- Merged PRs (30d)
- 13
Description
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?
Contributor guide
Assessment
This issue has not been assessed yet.