Fix override .autocorrect_incompatible_with without breaking designation of future incompatible cop

このエントリーをはてなブックマークに追加

Fix override RuboCop::Cop::Style::RedundantSelf.autocorrect_incompatible_with without breaking designation of future incompatible cop
https://github.com/rubocop/rubocop-rails/pull/685

https://github.com/rubocop/rubocop-rspec/pull/1252#discussion_r834361929 doesn't we override whatever is set in TrailingCommaInArguments, potentially breaking other extensions or future cops? Shouldn't we declare the incompatibility only in our own cop? If the incompatibility has to be declared in both cops, should we include a module which would then append to whatever super returns?

上記の対応時の対応と同じ修正を実施して、オーバライドで今後壊れる可能性があった箇所を修正した。