Recently I worked on a client project that required me to implement good code conventions across the project.
One of the tasks besides implementing the Rubocop standard cops was to write a custom cop for two different Datetime
methods,
so in this article I will explain how I created a custom Rubocop cop that solved that problem.