Inline RBS comments support for Sorbet | Rails at Scale
02-May-2025 14
Sorbet is a type checking tool for Ruby that enables developers to gradually add static type annotations, improving code stability and reliability by catching errors early and facilitating refactoring. It also includes a language server, enhancing the development experience with features like code navigation and error diagnostics.
At Shopify, Sorbet has been instrumental in improving the readability and maintainability of our large codebase. Currently, Sorbet checks 99% of our 75,000 files, with type signatures on 71% of our 1.5 million methods, covering 61% of all method call sites. This extensive use boosts type safety and clarity while significantly reducing errors in production.
Inline RBS comments support for Sorbet | Rails at Scale #ruby #rubydeveloper #rubyonrails #Inline #comments #support #Sorbet #Rails #Scale https://www.rubyonrails.ba/link/inline-rbs-comments-support-for-sorbet-rails-at-scale