If someone finds this thread because Rubocop is running slow for them locally, make sure you have not turned off Rubocop's default caching. For some reason my .rubocop.yml
file had UseCache: false
and once I deleted that line linting time improved 10x (from ~30s to ~3s).