Brighton Ruby Conference Logo

Thu 19 Jun
Brighton Dome

Buy Tickets

How to Write a Custom Rubocop Rule // Friday, 30th June 2023

Jade Dickinson

download

You want to enforce a standard in your codebase, like making sure a company name is in title case. So you add “always check for correct capitalisation” to your pull request guidelines. Over time, people forget to check and mistakes sneak in.

But wait - there’s an easier way! I’ll show you how you can write a custom Rubocop rule to check for you. So if someone breaks the rule, your CI tooling will flag it up so they can fix it, freeing you up to focus on more important things.

Video by Big Egg Films Logo

Based in London, Jade Dickinson is a Senior Software Engineer at Theta Lake. She studied biology, then worked in science journal publishing while studying computer science. In her spare time, she likes walking her Shiba Inu and attempting ever more elaborate recipes.