From 617461e97e9e20f56fc0a75f67b7356640187fce Mon Sep 17 00:00:00 2001 From: raj-meka <166544023+raj-meka@users.noreply.github.com> Date: Mon, 3 Jun 2024 19:32:36 -0400 Subject: [PATCH 1/2] Strict-type-Dependabot::Docker::Requirement::MetadataFinder. --- docker/lib/dependabot/docker/metadata_finder.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/docker/lib/dependabot/docker/metadata_finder.rb b/docker/lib/dependabot/docker/metadata_finder.rb index 54981b74af..9ed3ac922d 100644 --- a/docker/lib/dependabot/docker/metadata_finder.rb +++ b/docker/lib/dependabot/docker/metadata_finder.rb @@ -1,15 +1,18 @@ -# typed: true +# typed: strict # frozen_string_literal: true require "dependabot/metadata_finders" require "dependabot/metadata_finders/base" require "dependabot/shared_helpers" +require "sorbet-runtime" module Dependabot module Docker class MetadataFinder < Dependabot::MetadataFinders::Base + extend T::Sig private + sig { override.returns(T.nilable(Dependabot::Source)) } def look_up_source return if dependency.requirements.empty? From 4b0e0f20674b10763ffebbbe4942a5922d52d59f Mon Sep 17 00:00:00 2001 From: raj-meka <166544023+raj-meka@users.noreply.github.com> Date: Mon, 3 Jun 2024 20:12:48 -0400 Subject: [PATCH 2/2] Strict-type-Dependabot::Docker::Requirement::MetadataFinder. --- docker/lib/dependabot/docker/metadata_finder.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/docker/lib/dependabot/docker/metadata_finder.rb b/docker/lib/dependabot/docker/metadata_finder.rb index 9ed3ac922d..e20c2d0768 100644 --- a/docker/lib/dependabot/docker/metadata_finder.rb +++ b/docker/lib/dependabot/docker/metadata_finder.rb @@ -10,6 +10,7 @@ module Dependabot module Docker class MetadataFinder < Dependabot::MetadataFinders::Base extend T::Sig + private sig { override.returns(T.nilable(Dependabot::Source)) }