facebook / facebook/infer

Objective-C - warnings for isEqual and hash

Open
#100 2 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.