lib/rubocop/cop/mixin/configurable_max.rb in rubocop-0.52.0 vs lib/rubocop/cop/mixin/configurable_max.rb in rubocop-0.52.1

- old
+ new

@@ -3,9 +3,11 @@ module RuboCop module Cop # Handles `Max` configuration parameters, especially setting them to an # appropriate value with --auto-gen-config. module ConfigurableMax + private + def max=(value) cfg = config_to_allow_offenses value = [cfg[max_parameter_name], value].max if cfg[max_parameter_name] cfg[max_parameter_name] = value end