A side gig for RuboCop, the Bookworm code crawler
summary
Bookworm is built on RuboCop and crawls hundreds of Chef cookbooks to extract AST information into a persistent knowledge base of keys, letting rules run across many files rather than one file at a time. It uses the node pattern API to create cops and rewriters (example: replace Constant true/false with boolean literals), produces reports and safe transpiles, detects leaf cookbooks for safe deletion, and runs at Meta scale on tens of thousands of recipes.
AI-written summary · about
chapters (10)
- 0:00Introduction and speaker
- 1:32Chef at Meta scale
- 4:48Linters and safety hierarchy
- 9:27Code mods and RuboCop
- 16:33Why Bookworm was built
- 18:00Bookworm design and crawl
- 21:10Node pattern API reuse
- 23:18Simple reports and reuse
- 25:28Leaf cookbooks and cleanup
- 27:15Open source and future
related talks
29mAnalyzing an analyzer - A dive into how RuboCop works
35mRuboCop Sent You a Friend Request
27mSquashing Security Bugs with Rubocop
21mBlazing-fast Code Indexing for Smarter Ruby Tools
28mROLE MODELS ARE IMPORTANT: RUBOCOP
31mCommunicating with Cops
41mWriting Lint for Ruby
05mDeepCook: Code Your Way Through Everyday Chores
