-
This commit fixes two types of Rubocop failures seen only with Ruby 3.2: * Style/ArgumentsForwarding: As explained in https://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Style/ArgumentsForwarding, in Ruby 3.2, anonymous args/kwargs forwarding has been added. This cop can be disabled by setting `UseAnonymousForwarding: false`. * Lint/RedundantRequireStatement: As explained in https://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Lint/RedundantRequireStatement, `require 'set'` is no longer needed in Ruby 3.2. But since we still need to support Ruby 3.1 and earlier, disable this cop on `require 'set'` lines. Relates to https://gitlab.com/gitlab-org/gitlab/-/merge_requests/140815#note_1712305597
This commit fixes two types of Rubocop failures seen only with Ruby 3.2: * Style/ArgumentsForwarding: As explained in https://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Style/ArgumentsForwarding, in Ruby 3.2, anonymous args/kwargs forwarding has been added. This cop can be disabled by setting `UseAnonymousForwarding: false`. * Lint/RedundantRequireStatement: As explained in https://www.rubydoc.info/gems/rubocop/RuboCop/Cop/Lint/RedundantRequireStatement, `require 'set'` is no longer needed in Ruby 3.2. But since we still need to support Ruby 3.1 and earlier, disable this cop on `require 'set'` lines. Relates to https://gitlab.com/gitlab-org/gitlab/-/merge_requests/140815#note_1712305597
代码所有者
将用户和群组指定为特定文件更改的核准人。 了解更多。