Skip to content

Commit

Permalink
fix rule_merger.rbs
Browse files Browse the repository at this point in the history
  • Loading branch information
GustavoCaso committed Oct 10, 2023
1 parent 6266701 commit 7f147ec
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
1 change: 0 additions & 1 deletion Steepfile
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ target :ddtrace do
ignore 'lib/datadog/appsec/contrib/sinatra/request_middleware.rb'
ignore 'lib/datadog/appsec/monitor/gateway/watcher.rb'
ignore 'lib/datadog/appsec/monitor/reactive/set_user.rb'
ignore 'lib/datadog/appsec/processor/rule_merger.rb'
ignore 'lib/datadog/ci.rb'
ignore 'lib/datadog/ci/configuration/components.rb'
ignore 'lib/datadog/ci/configuration/settings.rb'
Expand Down
16 changes: 8 additions & 8 deletions sig/datadog/appsec/processor/rule_merger.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -8,30 +8,30 @@ module Datadog

type rules = ::Hash[::String, untyped]
type data = ::Array[::Hash[::String, untyped]]
type overrides = ::Array[::Hash[::String, untyped]]
type exclusions = ::Array[::Hash[::String, untyped]]
type custom_rules = ::Array[::Hash[::String, untyped]]
type overrides = ::Array[::Array[::Hash[::String, untyped]]]
type exclusions = ::Array[::Array[::Hash[::String, untyped]]]
type custom_rules = ::Array[::Array[::Hash[::String, untyped]]]
type processors = ::Array[::Hash[::String, untyped]]
type scanners = ::Array[::Hash[::String, untyped]]

DEFAULT_WAF_PROCESSORS: processors
DEFAULT_WAF_SCANNERS: processors

def self.merge: (rules: ::Array[rules], ?data: ::Array[data], ?overrides: ::Array[overrides], ?exclusions: ::Array[exclusions], ?custom_rules: ::Array[custom_rules], ?processors: processors, ?scanners: scanners) -> rules
def self.merge: (rules: ::Array[rules], ?data: ::Array[data], ?overrides: overrides, ?exclusions: exclusions, ?custom_rules: custom_rules, ?processors: processors, ?scanners: scanners) -> rules

private

def self.combine_rules: (::Array[rules] rules) -> rules

def self.combine_data: (::Array[data] data) -> data?

def self.merge_data_base_on_expiration: (data data1, data data2) -> ::Array[data]
def self.merge_data_base_on_expiration: (data data1, data data2) -> data

def self.combine_overrides: (::Array[overrides] overrides) -> ::Array[overrides]?
def self.combine_overrides: (overrides overrides) -> overrides?

def self.combine_exclusions: (::Array[exclusions] exclusions) -> ::Array[exclusions]?
def self.combine_exclusions: (exclusions exclusions) -> exclusions?

def self.combine_custom_rules: (::Array[custom_rules] custom_rules) -> ::Array[custom_rules]?
def self.combine_custom_rules: (custom_rules custom_rules) -> custom_rules?
end
end
end
Expand Down

0 comments on commit 7f147ec

Please sign in to comment.