rubocop-rails icon indicating copy to clipboard operation
rubocop-rails copied to clipboard

Add new Rails/ActiveSupportOnLoad cop.

Open bdewater opened this issue 3 years ago • 0 comments

See https://github.com/rubocop/rails-style-guide/pull/323

This cop is extracted from Shopify's internal Rubocop repository. Many thanks to the original authors for their work.


Before submitting the PR make sure the following are checked:

  • [ ] The PR relates to only one subject with a clear title and description in grammatically correct, complete sentences.
  • [ ] Wrote good commit messages.
  • [ ] Commit message starts with [Fix #issue-number] (if the related issue exists).
  • [ ] Feature branch is up-to-date with master (if not - rebase it).
  • [ ] Squashed related commits together.
  • [ ] Added tests.
  • [ ] Ran bundle exec rake default. It executes all tests and runs RuboCop on its own code.
  • [ ] Added an entry (file) to the changelog folder named {change_type}_{change_description}.md if the new code introduces user-observable changes. See changelog entry format for details.
  • [ ] If this is a new cop, consider making a corresponding update to the Rails Style Guide.

bdewater avatar Jul 22 '22 11:07 bdewater