~/talk

Static Typo Checker in Ruby

Talkat RubyKaigi 2017 · 2017-09-18..09-20· [ruby-on-rails]
links:none on file
slides:none on file

A static typo checker is implemented as a did_you_mean static mode that parses bytecode via RubyVM InstructionSequence to list undefined method calls without executing app logic, and it exposes findings as JSON to editors via a VS Code plugin for inline annotations. It works well on small, dependency-light projects and JRuby, but it still spawns a Ruby process, yields many false positives with ActiveRecord metaprogramming and method_missing, and needs Rails-aware filters and caching to scale.

AI-written summary · about

  1. 0:00Introduction
  2. 2:10What is a champion
  3. 11:17Problems with did you mean
  4. 14:29Static analysis demo
  5. 17:44How static checker works
  6. 23:05Editor integration
  7. 29:14Limitations and challenges
  8. 36:03Conclusion and future
  9. 37:55Q&A
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.