File tree Expand file tree Collapse file tree 6 files changed +15
-12
lines changed Expand file tree Collapse file tree 6 files changed +15
-12
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ target :datadog do
4343 hash [ Ruby ::UnexpectedSuper ] = :information
4444 end
4545
46- ignore 'lib/datadog/appsec.rb'
46+ ignore 'lib/datadog/appsec/actions_handler .rb'
4747 ignore 'lib/datadog/appsec/component.rb'
4848 # Excluded due to https://github.com/soutaro/steep/issues/1232
4949 ignore 'lib/datadog/appsec/configuration/settings.rb'
@@ -56,7 +56,6 @@ target :datadog do
5656 ignore 'lib/datadog/core/configuration/ext.rb'
5757 ignore 'lib/datadog/core/configuration/settings.rb'
5858 ignore 'lib/datadog/core/contrib/rails/utils.rb'
59- ignore 'lib/datadog/core/encoding.rb'
6059 ignore 'lib/datadog/core/environment/identity.rb'
6160 ignore 'lib/datadog/core/environment/platform.rb'
6261 ignore 'lib/datadog/core/environment/socket.rb'
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ def receivers(telemetry)
7373
7474 matcher = Core ::Remote ::Dispatcher ::Matcher ::Product . new ( ASM_PRODUCTS )
7575 receiver = Core ::Remote ::Dispatcher ::Receiver . new ( matcher ) do |repository , changes |
76- next unless AppSec . security_engine
76+ next unless AppSec . security_engine # steep:ignore
7777
7878 changes . each do |change |
7979 content = repository [ change . path ]
@@ -83,7 +83,7 @@ def receivers(telemetry)
8383 when :insert , :update
8484 AppSec . security_engine . add_or_update_config ( parse_content ( content ) , path : change . path . to_s ) # steep:ignore
8585
86- content . applied # steep:ignore
86+ content . applied
8787 when :delete
8888 AppSec . security_engine . remove_config_at_path ( change . path . to_s ) # steep:ignore
8989 end
Original file line number Diff line number Diff line change @@ -3,9 +3,13 @@ module Datadog
33 module ActionsHandler
44 class SerializableBacktrace
55 CLASS_AND_FUNCTION_NAME_REGEX: ::Regexp
6+ UNTYPED_CONSTANT: untyped
7+ PARTIALLY_TYPED_CONSTANT: Array[untyped ]
68
7- def initialize : (locations: ::Array[::Thread::Backtrace::Location], stack_id: String) -> void
8- def to_msgpack : (?untyped ? packer) -> void
9+ def initialize : (locations: ::Array[::Thread::Backtrace::Location], stack_id: untyped ) -> void
10+ def to_msgpack : (?Object? packer) -> void
11+ def to_json : (?untyped ? packer) -> void
12+ def to_hash : () -> untyped
913
1014 private def build_serializable_locations_map : -> ::Hash[Integer, ::Thread::Backtrace::Location]
1115 end
Original file line number Diff line number Diff line change @@ -24,11 +24,11 @@ module Datadog
2424 interface _RackApp
2525 def is_a? : (Class) -> bool
2626
27- def routes : () -> untyped
27+ def routes : () -> Object
2828 end
2929
3030 interface _GrapeRoute
31- def request_method : () -> String
31+ def request_method : () -> untyped
3232 def pattern : () -> _GrapeRoutePattern
3333 end
3434
Original file line number Diff line number Diff line change @@ -7,13 +7,13 @@ module Datadog
77
88 @span: Tracing::SpanOperation
99
10- @events: ::Array[untyped ]
10+ @events: ::Array[Object ]
1111
1212 @waf_runner: SecurityEngine::Runner
1313
1414 @metrics: Metrics::Collector
1515
16- @interrupted: bool
16+ @interrupted: Array[ bool ]
1717
1818 ActiveContextError: ::StandardError
1919
Original file line number Diff line number Diff line change @@ -24,9 +24,9 @@ module Datadog
2424 end
2525
2626 class DataContainer < Argument
27- @data: untyped
27+ @data: Object
2828
29- @context: Context
29+ @context: untyped
3030
3131 attr_reader data: untyped
3232
You can’t perform that action at this time.
0 commit comments