~/talk

RuboCop: LSP and Prism

Talkat RubyKaigi 2024 · 2024-05-15..05-17· [ruby, developer-experience]
slides:none on file

Built-in LSP runs a daemon via rubocop--lsp so editors get real‑time diagnostics and formatting without RuboCop’s slow startup and the CLI remains for heavy autocorrect. RuboCop adds AutoCorrect:contextual (values always disabled contextual) to skip aggressive fixes while typing. Parser backend can switch to ParserEngine: parser_prism with gem 'prism', supporting Ruby 3.3+ and error tolerance (MissingNode) and yielding about 4× faster parsing via translation (raw Prism bench shows ~33×), while RuboCop maintains ~580 cops to keep working.

AI-written summary · about

  1. 0:00Introduction and background
  2. 2:09What is LSP and its role
  3. 5:28RuboCop's LSP implementation
  4. 10:34Auto-correct context challenges
  5. 12:44Introducing Prism for RuboCop
  6. 15:34Prism integration details
  7. 18:01Performance gains with Prism
  8. 19:51Error tolerance with Prism
  9. 22:15Future of parsers and RuboCop
  10. 24:45Closing remarks and thanks
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 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
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
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.