Communicating with Cops
summary
Claim: Rubocop can codify not just style but behavioral rules and auto-correct them so reviewers stop leaving hundreds of PR comments about formatting and focus on bugs. Concrete examples: a custom cop prevents rescuing from Exception, another detects assignments to permit_all_parameters in tests and requires begin/cache/ensure reset to avoid global-state leaks that cause flaky, order-dependent failures. Walkthrough shows writing the cop with AST hooks, tests, and CI/editor hooks and reports it works in production at Clio.
AI-written summary · about
chapters (11)
- 0:00Start
- 0:43Transforming the practice of law, for good.
- 1:25PET PROJECT
- 10:08Customizable
- 24:42Custom Cops at Clio
- 27:04Consistent style and behaviour
- 27:14Significantly increase code quality
- 27:28Codify learnings
- 28:03Enable what makes sense
- 29:00Linting in editors
- 29:52Treat linting as a method to educate
related talks
23mEmbracing Code Quality with Rubocop
35mRuboCop Sent You a Friend Request
52mThe Elements of Style in Ruby
53mCode Review Beyond Code Style
24mKeeping Code Style Sanity in a 13-year-old Codebase
23mKeeping Code Style Sanity in a 13-year-old Codebase
21mCode reviewing like a champion
23mDrama-Free Code Review!
