Skip to content

Conversation

@koic
Copy link
Member

@koic koic commented Oct 11, 2020

Follow rubocop/rubocop#8365

This PR uses RESTRICT_ON_SEND to restrict callbacks on_send to specific method names only.
RESTRICT_ON_SEND has been introduced since RuboCop 0.90.


Before submitting the PR make sure the following are checked:

  • 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.
  • Added an entry to the Changelog if the new code introduces user-observable changes. See changelog entry format.
  • The PR relates to only one subject with a clear title
    and description in grammatically correct, complete sentences.
  • Run bundle exec rake default. It executes all tests and RuboCop for itself, and generates the documentation.

Follow rubocop/rubocop#8365

This PR uses `RESTRICT_ON_SEND` to restrict callbacks `on_send`
to specific method names only.
`RESTRICT_ON_SEND` has been introduced since RuboCop 0.90.
@koic koic force-pushed the use_restrict_on_send branch from 5718984 to 8003ca0 Compare October 12, 2020 06:07
@koic koic merged commit f355cf9 into rubocop:master Oct 12, 2020
@koic koic deleted the use_restrict_on_send branch October 12, 2020 15:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants