Skip to content

DDR-2449: Add rubocop & rubocop config, apply all autocorrections, generate .rubocop_todo.yml

rfb11 requested to merge DDR-2449-rubocop-linting into main

This adds the following gems to the development environment:

  • rubocop
  • rubocop-performance
  • rubocop-rails
  • rubocop-rspec

All safe & unsafe autocorrects have been applied and checked/fixed for tests passing. Remaining warnings have been placed in .rubocop_todo.yml as exceptions for linting (i.e. only new code or changes will cause a rubocop failure, unless exceptions are removed/fix from .rubocop_todo.yml).

Merge request reports