Skip to content

Exclude each_batch from Style/SymbolProc rubocop rule

What does this MR do and why?

Part of Exclude each_batch from rubocop rule for Style/... (#434151 - closed)

Prior to this change, the Style/SymbolProc rubocop rule reported offenses if each_batch or each_sub_batch are written with a block instead of &:method. Those two methods don't work with &:method which makes is impossible to fix this offense without disabling the rule inline.

This change excludes each_batch and each_sub_batch from the Style/SymbolProc rubocop rule to address this issue. Additionally, it is ensured that the existing allowed methods are added back to the custom exclusion rule as well.

Existing inline comments to disable this rule are removed as a result of this exclusion and the to do list for the rule is also updated to remove files that only have an offense for these specific methods.

How to set up and validate locally

TBU

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Merge request reports