def parse_config
      defaults = load_default_config
      overrides = load_config "#{@dir}/cucumber_lint.yml"

      overrides.each_pair do |style, style_overrides|
        style_overrides.each_pair do |key, value|
          if key == 'enforced_style'
            supported = defaults[style]['supported_styles']
            fail UnsupportedStyle.new style, supported, value unless supported.include?(value)
          end

          defaults[style][key] = value
        end
      end

      defaults.to_open_struct
    end
def parse_config
      defaults = load_default_config
      overrides = load_config "#{@dir}/cucumber_lint.yml"

      overrides.each_pair do |style, style_overrides|
        style_overrides.each_pair do |key, value|
          if key == 'enforced_style'
            supported = defaults[style]['supported_styles']
            fail UnsupportedStyle.new style, supported, value unless supported.include?(value)
          end

          defaults[style][key] = value
        end
      end

      defaults.to_open_struct
    end
rubocop:disable Metrics/MethodLength