Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make custom cop inherit
RuboCop::Cop::Base
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 I've confirmed that the following behavior is compatible: ```console $ bundle exec util/rubocop -r ./util/cops/deprecations --only Rubygems/Deprecations ```
- Loading branch information