Sha256: 7a680892837c7d3bdcac31df3cd358173f5a06d8622ab4490433b793649fd1ad
Contents?: true
Size: 475 Bytes
Versions: 14
Compression:
Stored size: 475 Bytes
Contents
# encoding: utf-8 # frozen_string_literal: true module RuboCop module Cop # Handles `Max` configuration parameters, especially setting them to an # appropriate value with --auto-gen-config. module ConfigurableMax def max=(value) cfg = config_to_allow_offenses value = [cfg[parameter_name], value].max if cfg[parameter_name] cfg[parameter_name] = value end def parameter_name 'Max' end end end end
Version data entries
14 entries across 14 versions & 2 rubygems