Skip to content

Commit 50479e1

Browse files
committed
DO-NOT-MERGE tests
1 parent 70543ba commit 50479e1

File tree

6 files changed

+15
-12
lines changed

6 files changed

+15
-12
lines changed

Steepfile

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff 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'

lib/datadog/appsec/remote.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

sig/datadog/appsec/actions_handler/serializable_backtrace.rbs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff 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

sig/datadog/appsec/api_security/endpoint_collection.rbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

sig/datadog/appsec/context.rbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

sig/datadog/appsec/instrumentation/gateway/argument.rbs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)