~/talk

Communicating with Cops

Talkat RailsConf 2020 CE · 2020-05-04..05-05· [developer-experience, testing]
speakerdeck:doliveirakn
slides:none on file

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

  1. 0:00Start
  2. 0:43Transforming the practice of law, for good.
  3. 1:25PET PROJECT
  4. 10:08Customizable
  5. 24:42Custom Cops at Clio
  6. 27:04Consistent style and behaviour
  7. 27:14Significantly increase code quality
  8. 27:28Codify learnings
  9. 28:03Enable what makes sense
  10. 29:00Linting in editors
  11. 29:52Treat linting as a method to educate
~/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.