keylimetoolbox / resque-kubernetes

Run Resque (and ActiveJob) workers as Kubernetes Jobs and autoscale from 0!
MIT License
54 stars 15 forks source link

Add rubocop, bunder-audit, and refactor to comply with rubocop rules #5

Closed jeremywadsack closed 6 years ago

jeremywadsack commented 6 years ago

In line with our guidelines, this adds rubocop and bundler-audit to the development dependencies. I updated the default rake task to run rspec, rubocop, then bundler-audit — that should match the order in which you're most likely going to address issues and test.

I updated the code base to comply with our rubocop guidelines. This includes extracting some utility functions / repeated patterns to dedicated classes (DeepHash, DNSSafeRandom, ContextFactory).