This document records how we added type checking to Fizzy. Use it as a plan for other Rails apps.
- We use inline RBS annotations in the Ruby code and Steep to check them.
- Generators make most signatures. We write by hand only what tools cannot get from the code.
- The migration took six phases. We planned four.
- Inline RBS cannot express some common Rails patterns. We changed app code in a small number of mechanical ways, and we wrote a generator for the remaining gaps.