Upgrade to Pro — share decks privately, control downloads, hide ads and more …

TypeProf 開発レポート 2026-05 / TypeProf Dev Report 2...

TypeProf 開発レポート 2026-05 / TypeProf Dev Report 2026-05

Avatar for Takumi Shotoku

Takumi Shotoku

May 15, 2026

More Decks by Takumi Shotoku

Other Decks in Technology

Transcript

  1. ࣗݾ঺հ • ໊લ: ਖ਼ಙ ޼(aka: ਆ଎) • ॴଐ: גࣜձࣾmov •

    GitHub: @sinsoku (ը૾ӈ্) • X: @sinsoku_listy (ը૾ӈԼ) • Omotesando.rb, Asakusa-bashi.rbs 2
  2. ruby RBS TypeProf gem_rbs_collection soutaro Steep rbs-inline shopify Sorbet Tapioca

    RubyDex rbs_rails pocke Orthoses ksss rbs-trace sinsoku method-ray dak2 type-guessr riseshia 12
  3. ruby RBS TypeProf gem_rbs_collection soutaro Steep rbs-inline shopify Sorbet Tapioca

    RubyDex rbs_rails pocke Orthoses ksss rbs-trace sinsoku method-ray dak2 type-guessr riseshia ⭐ ⭐ 14
  4. RBS RubyͰܕΛѻ͏ͨΊͷϓϩτίϧͰɺ֦ுࢠ͸ *.rbsɻ module ChatApp VERSION: String class User attr_reader

    login: String attr_reader email: String def initialize: (login: String, email: String) -# void end end 15
  5. ܕੜ੒ ! / ܕݕࠪ ruby RBS TypeProf gem_rbs_collection soutaro Steep

    rbs-inline shopify Sorbet Tapioca RubyDex rbs_rails pocke Orthoses ksss rbs-trace sinsoku method-ray dak2 type-guessr riseshia ⭐ ⭐ ✅ ✅ ✅ ✅ # # # # # 18
  6. ruby RBS TypeProf gem_rbs_collection soutaro Steep rbs-inline shopify Sorbet Tapioca

    RubyDex rbs_rails pocke Orthoses ksss rbs-trace sinsoku method-ray dak2 type-guessr riseshia ⭐ ⭐ ✅ ✅ ✅ ✅ # # # # # 23
  7. ಋೖखॱʢެࣜʣ 1. Gemfile ʹ typeprof Λ௥Ճ͢Δ 2. bundle install Λ࣮ߦ͢Δ

    3. bundle exec typeprof -"init 4. VSCode ʹ Ruby TypeProf Λ௥Ճ 24
  8. ಋೖखॱʢඇެࣜʣ 1. Gemfile ʹ ruby-lsp-typeprof Λ௥Ճ͢Δ 2. bundle install Λ࣮ߦ͢Δ

    3. bundle exec typeprof -#init ! ಋೖ͸ָ͚ͩͲɺެࣜͷVSCode֦ுͷํ͕ଟػೳɻ2 2 ruby-lsp-typeprof ͸ϝιουఆٛͷද͔ࣔ͠Ͱ͖ͳ͍ɻ 25
  9. ओͳ׆ಈ಺༰ 1. TypeProf Λࢼ͢ͱΤϥʔ͕ग़Δ • bin/typeprof tmp/redmine/app 2. ࠶ݱίʔυΛ࡞Δ 3.

    ཧղͰ͖Δൣғͷ࠷খͷύονΛ࡞Δ Claude Code Λ࢖ͬͯௐࠪɺ࣮૷Λ͍ͯ͠Δɻ 27
  10. 28

  11. 29

  12. Omotesando.rb #115 (2025-11-13) • ! v0.31.0 ͷ঺հ • ✅ Redmine

    ͷίʔυͰղੳ͕੒ޭ • # GitLab ͷίʔυͰղੳ͕ࣦഊ • To be continued... 31
  13. 2026-05 ͷTypeProf • ଟ͘ͷRailsΞϓϦͰΤϥʔͳ͘ಈ͘ • ύϑΥʔϚϯε͕গ͠ྑ͘ͳͬͨ • ͔͠͠ɺ·ͩ஗͍ ! •

    ܕਪ࿦ͷਫ਼౓͸࣮༻తͰ͸ͳ͍ • ಛʹRailsΞϓϦͰ͸ untyped ͕ଟ͍ 32
  14. ! ฐࣾͷRailsΞϓϦʹࢼݧతʹಋೖ $ time bundle exec typeprof app sig real

    5m14.929s user 5m10.690s sys 0m1.814s ղੳର৅ͷϑΝΠϧ਺͸ 7970 Ͱ͢ɻ 33
  15. ! ίʔυͷن໛ $ bin/rails stats +----------------------+--------+--------+---------+---------+-----+-------+ | Name | Lines

    | LOC | Classes | Methods | M/C | LOC/M | +----------------------+--------+--------+---------+---------+-----+-------+ | Controllers | 27756 | 22218 | 632 | 2846 | 4 | 5 | | Helpers | 192 | 147 | 1 | 19 | 19 | 5 | | Jobs | 4036 | 3081 | 148 | 248 | 1 | 10 | | Models | 98268 | 67457 | 1701 | 6779 | 3 | 7 | | Mailers | 1200 | 957 | 27 | 100 | 3 | 7 | | Channels | 42 | 33 | 4 | 7 | 1 | 2 | | Views | 583 | 465 | 0 | 0 | 0 | 0 | | JavaScript | 105435 | 96211 | 0 | 40 | 0 | 2403 | | Libraries | 30302 | 24057 | 307 | 1344 | 4 | 15 | +----------------------+--------+--------+---------+---------+-----+-------+ | Total | 267814 | 214626 | 2820 | 11383 | 4 | 16 | +----------------------+--------+--------+---------+---------+-----+-------+ Code LOC: 214626 Test LOC: 0 Code to Test Ratio: 1:0.0 app/ ͸ 131,494 lines Ͱɺsig/ ͸ rbs_rails ͷࣗಈੜ੒Ͱ͢ɻ 34
  16. ! ܕਪ࿦ͷਫ਼౓ # Total methods: 15507 # Fully typed: 5956

    # Partially typed: 2504 # Fully untyped: 7047 # # # Overall: 12081/28794 typed (42.0%) # 16713/28794 untyped (58.0%) bundle exec typeprof -"show-stats ͔ΒൈਮͰ͢ɻ 35
  17. ·ͱΊ • ܕؔ࿈πʔϧ͸෼ྨΛ஌Δͱཧղ͠΍͍͢ • RBS ͕ϓϩτίϧ • ܕݕࠪ͸4ͭ • TypeProf

    ͸RailsΞϓϦͰࢼͤΔΑ͏ʹͳ͖ͬͯͨ • ύϑΥʔϚϯεɺܕਪ࿦ͷਫ਼౓͸ࠓޙʹظ଴ 36
  18. 39