How Deprecation Toolkit works
mainDeprecation Toolkit uses a "shitlist approach" to manage code deprecations. It works in two phases:
- Recording: The gem records all existing deprecations into
.ymlfiles. - Enforcement: When running tests, if a deprecation is encountered that was not in the recorded files, the gem triggers a configured behavior (by default, it raises an error).
This allows teams to progressively resolve existing deprecations while ensuring no new ones are introduced to the codebase.