Skip to content

Commit

Permalink
Merge pull request #3198 from DataDog/ivoanjo/upgrade-steep-1_5_3
Browse files Browse the repository at this point in the history
Upgrade steep typechecker to latest version 1.5.3
  • Loading branch information
ivoanjo authored Oct 10, 2023
2 parents c71c2a0 + 7f147ec commit d6d907a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ end
group :check do
if RUBY_VERSION >= '3.0.0' && RUBY_PLATFORM != 'java'
gem 'rbs', '~> 3.2.0', require: false
gem 'steep', '~> 1.4.0', require: false
gem 'steep', '~> 1.5.3', require: false
end
end

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 d6d907a

Please sign in to comment.