Sha256: d01e74f12560082919fbd90a0cd18146cc2061aedaf2c8e53acba278440d8da2
Contents?: true
Size: 638 Bytes
Versions: 224
Compression:
Stored size: 638 Bytes
Contents
# frozen_string_literal: true module RuboCop module Cop # Handles `Max` configuration parameters, especially setting them to an # appropriate value with --auto-gen-config. # @deprecated Use `exclude_limit ParameterName` instead. module ConfigurableMax private def max=(value) cfg = config_to_allow_offenses cfg[:exclude_limit] ||= {} current_max = cfg[:exclude_limit][max_parameter_name] value = [current_max, value].max if current_max cfg[:exclude_limit][max_parameter_name] = value end def max_parameter_name 'Max' end end end end
Version data entries
224 entries across 215 versions & 22 rubygems