Make errors for strict mode be whitelisted
Summary:
Instead of blacklisting fixme codes in .hhconfig, this new option makes all codes unfixmeable by default. New errors added to hack will similarly be unfixmeable. This is a fairly big departure from the way Hack errors have been treated historically and will help expedite efforts to make Hack trusted by default.
The overall plan for Hack is to move away from error suppression and towards explicit dynamicism for unsafe behavior. Fixmes will still be supported for the near future, but we are aggressively removing them at Facebook, and community Hack projects should similarly aim to reduce and constrain fixmes in libraries. In the immediate term, projects will need to whitelist fixme codes used in their dependencies, but this burden will decrease as more libraries transition to being trusted.
All the numbered diffs in this stack are meant to land more or less together.
Reviewed By: Wilfred
Differential Revision:
D21608542
fbshipit-source-id:
2f58e7623186e43c0e209e75c355efe4891fc841