Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove a deprecated RuboCop's API #166

Conversation

koic
Copy link
Contributor

@koic koic commented Jul 10, 2024

Follow up rubocop/rubocop#9471.

This PR removes a deprecated RuboCop::Cop::ConfigurableMax module.

The exclude_limit 'Max' used instead of the deprecated API is defined in RuboCop::Cop::CodeLength mixin: https://github.com/rubocop/rubocop/blob/v1.65.0/lib/rubocop/cop/mixin/code_length.rb#L11

So it is sufficient to simply remove the deprecated API.

Follow up rubocop/rubocop#9471.

This PR removes a deprecated `RuboCop::Cop::ConfigurableMax` module.

The `exclude_limit 'Max'` used instead of the deprecated API is defined in `RuboCop::Cop::CodeLength` mixin:
https://github.com/rubocop/rubocop/blob/v1.65.0/lib/rubocop/cop/mixin/code_length.rb#L11

So it is sufficient to simply remove the deprecated API.
Copy link
Owner

@DmitryTsepelev DmitryTsepelev left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thank you 🙏

@DmitryTsepelev DmitryTsepelev merged commit 64cff5f into DmitryTsepelev:master Jul 11, 2024
13 checks passed
@koic koic deleted the remove_unused_deprecated_rubocop_api branch July 11, 2024 08:03
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