Sha256: 73b5980b533518238f8f8df70e16d97be01f091aabcadf9fb340ebef86452c7e

Contents?: true

Size: 773 Bytes

Versions: 4

Compression:

Stored size: 773 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 [Array<String>]
          attr_accessor :denylist

          def initialize
            super
            @denylist = []
          end

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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
contrast-agent-6.11.0 lib/contrast/agent/reporting/settings/code_exclusion.rb
contrast-agent-6.10.0 lib/contrast/agent/reporting/settings/code_exclusion.rb
contrast-agent-6.9.0 lib/contrast/agent/reporting/settings/code_exclusion.rb
contrast-agent-6.8.0 lib/contrast/agent/reporting/settings/code_exclusion.rb