Skip to content

Commit

Permalink
Strict type Dependabot::Docker::Requirement::Helpers (#9890)
Browse files Browse the repository at this point in the history
* Strict-type-Dependabot::Docker::Requirement::Helpers.

* Update docker/lib/dependabot/docker/utils/helpers.rb

Co-authored-by: Jamie Magee <jamagee@microsoft.com>

---------

Co-authored-by: Jamie Magee <jamagee@microsoft.com>
  • Loading branch information
raj-meka and JamieMagee authored Jun 3, 2024
1 parent 1443cfb commit a33e24f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion docker/lib/dependabot/docker/utils/helpers.rb
Original file line number Diff line number Diff line change
@@ -1,11 +1,16 @@
# typed: true
# typed: strong
# frozen_string_literal: true

require "sorbet-runtime"

module Dependabot
module Docker
module Utils
HELM_REGEXP = /values[\-a-zA-Z_0-9]*\.ya?ml$/i

extend T::Sig

sig { params(file: Dependabot::DependencyFile).returns(T::Boolean) }
def self.likely_helm_chart?(file)
file.name.match?(HELM_REGEXP)
end
Expand Down

0 comments on commit a33e24f

Please sign in to comment.