Embracing Code Quality with Rubocop
summary
Shows how to adopt Rubocop with rails/rspec/performance extensions, generate a Rubocop TODO file to batch legacy offenses, and run autocorrect to change 302 percent-style single-word arrays to bracket form automatically. Demonstrates tuning cops (method length, allowed_methods, redundant_return), using averages to pick max lengths, and exempting specific long methods. Reports technical debt falling from about 8% to 2% and recommends pre-commit hooks plus CI checks to keep standards enforced.
AI-written summary · about
related talks
31mCommunicating with Cops
27mSquashing Security Bugs with Rubocop
24mKeeping Code Style Sanity in a 13-year-old Codebase
23mKeeping Code Style Sanity in a 13-year-old Codebase
52mThe Elements of Style in Ruby
28mROLE MODELS ARE IMPORTANT: RUBOCOP
28mRESCUE SQUAD: Rails Edition!
33mKeeping Code Style Sanity in a 10-year-old Codebase
