lib/contrast/agent/assess/policy/trigger_node.rb in contrast-agent-3.11.0 vs lib/contrast/agent/assess/policy/trigger_node.rb in contrast-agent-3.12.0

- old
+ new

@@ -1,8 +1,11 @@ # Copyright (c) 2020 Contrast Security, Inc. See https://www.contrastsecurity.com/enduser-terms-0317a for more details. # frozen_string_literal: true +cs__scoped_require 'contrast/agent/assess/policy/trigger/reflected_xss' +cs__scoped_require 'contrast/agent/assess/policy/trigger/xpath' + module Contrast module Agent module Assess module Policy # This class functions to translate our policy.json into an actionable @@ -62,10 +65,10 @@ def node_type :TYPE_METHOD end def rule_disabled? - Contrast::Agent::FeatureState.instance.assess_disabled_rules.include?(rule_id) + ASSESS.rule_disabled?(rule_id) end # Indicate if this is a dataflow based trigger, meaning it has a proper # synch that requires a tainted source to reach it. If this returns # false, this rule is for method validation, ensuring that an insecure