Skip to content

Fix Style/OpenStructUse offenses in application settings helper

Siddharth Asthana requested to merge edith007/gitlab:issue_344279_app_1 into master

What does this MR do and why?

This MR aims to solve the issue #344279

It replaces OpenStruct use since Ruby 3 discourages and replaces it by Struct.

Ideally, we want to use a "proper" object. See #358419.

File Change

  • .rubocop_todo/style/open_struct_use.yml
  • app/helpers/application_settings_helper.rb

MR acceptance checklist

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

Edited by Peter Leitzen

Merge request reports

Loading