Skip to content

Make custom cop inherit RuboCop::Cop::Base#9597

Merged
jekyllbot merged 1 commit intojekyll:masterfrom
koic:make_custom_cop_inherit_rubocop_cop_base
May 22, 2024
Merged

Make custom cop inherit RuboCop::Cop::Base#9597
jekyllbot merged 1 commit intojekyll:masterfrom
koic:make_custom_cop_inherit_rubocop_cop_base

Conversation

@koic
Copy link
Copy Markdown
Contributor

@koic koic commented May 10, 2024

This is a 🔨 code refactoring.

Summary

This PR uses RuboCop::Cop::Base for custom cops.

Context

Follow rubocop/rubocop#7868.

The legacy RuboCop::Cop::Cop API is soft deprecated and this PR makes custom cop inherit RuboCop::Cop::Base API instead.

maintain any RuboCop extensions, as the legacy API will be removed in RuboCop 2.0.

https://metaredux.com/posts/2020/10/21/rubocop-1-0.html

Follow rubocop/rubocop#7868.

The legacy `RuboCop::Cop::Cop` API is soft deprecated and
this PR makes custom cop inherit `RuboCop::Cop::Base` API instead.

> maintain any RuboCop extensions, as the legacy API
> will be removed in RuboCop 2.0.

https://metaredux.com/posts/2020/10/21/rubocop-1-0.html
Copy link
Copy Markdown
Member

@mattr- mattr- 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 for contributing!

@jekyllbot: merge +dev

@jekyllbot jekyllbot merged commit 28e10da into jekyll:master May 22, 2024
jekyllbot added a commit that referenced this pull request May 22, 2024
github-actions bot pushed a commit that referenced this pull request May 22, 2024
Koichi ITO: Make custom cop inherit `RuboCop::Cop::Base` (#9597)

Merge pull request 9597
@koic koic deleted the make_custom_cop_inherit_rubocop_cop_base branch May 22, 2024 18:08
monfresh pushed a commit to monfresh/jekyll that referenced this pull request Jun 5, 2024
monfresh pushed a commit to monfresh/jekyll that referenced this pull request Jun 5, 2024
@jekyll jekyll locked and limited conversation to collaborators May 22, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants