Sha256: 90517e196939ff50f6894984fe76fb21e77ede55670ea57856fdffc09b0a9e8f

Contents?: true

Size: 741 Bytes

Versions: 12

Compression:

Stored size: 741 Bytes

Contents

# Copyright (c) 2022 Contrast Security, Inc. See https://www.contrastsecurity.com/enduser-terms-0317a for more details.
# frozen_string_literal: true

require 'contrast/agent/reporting/settings/exclusion_base'

module Contrast
  module Agent
    module Reporting
      module Settings
        # CodeExclusions class
        class CodeExclusion < ExclusionBase
          ATTRIBUTES = BASE_ATTRIBUTES.dup << :denylist
          ATTRIBUTES.cs__freeze

          # @return denylist [Array<String>] #rubocop:disable [Naming/InclusiveLanguage]
          attr_accessor :denylist

          def to_controlled_hash
            hash = super
            hash[:denylist] = denylist
            hash
          end
        end
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
contrast-agent-6.7.0 lib/contrast/agent/reporting/settings/code_exclusion.rb
contrast-agent-6.6.5 lib/contrast/agent/reporting/settings/code_exclusion.rb
contrast-agent-6.6.4 lib/contrast/agent/reporting/settings/code_exclusion.rb
contrast-agent-6.6.3 lib/contrast/agent/reporting/settings/code_exclusion.rb
contrast-agent-6.6.2 lib/contrast/agent/reporting/settings/code_exclusion.rb
contrast-agent-6.6.1 lib/contrast/agent/reporting/settings/code_exclusion.rb
contrast-agent-6.6.0 lib/contrast/agent/reporting/settings/code_exclusion.rb
contrast-agent-6.5.1 lib/contrast/agent/reporting/settings/code_exclusion.rb
contrast-agent-6.5.0 lib/contrast/agent/reporting/settings/code_exclusion.rb
contrast-agent-6.4.0 lib/contrast/agent/reporting/settings/code_exclusion.rb
contrast-agent-6.3.0 lib/contrast/agent/reporting/settings/code_exclusion.rb
contrast-agent-6.2.0 lib/contrast/agent/reporting/settings/code_exclusion.rb