dev-cmd/audit: Bump to Sorbet typed: strict
This commit is contained in:
parent
9e0a749231
commit
f854a9f3fc
@ -1,4 +1,4 @@
|
|||||||
# typed: true
|
# typed: strict
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require "abstract_command"
|
require "abstract_command"
|
||||||
@ -329,6 +329,7 @@ module Homebrew
|
|||||||
|
|
||||||
private
|
private
|
||||||
|
|
||||||
|
sig { params(results: T::Hash[[Symbol, Pathname], T::Array[T::Hash[Symbol, T.untyped]]]).void }
|
||||||
def print_problems(results)
|
def print_problems(results)
|
||||||
results.each do |(name, path), problems|
|
results.each do |(name, path), problems|
|
||||||
problem_lines = format_problem_lines(problems)
|
problem_lines = format_problem_lines(problems)
|
||||||
@ -343,6 +344,7 @@ module Homebrew
|
|||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
sig { params(problems: T::Array[T::Hash[Symbol, T.untyped]]).returns(T::Array[String]) }
|
||||||
def format_problem_lines(problems)
|
def format_problem_lines(problems)
|
||||||
problems.map do |problem|
|
problems.map do |problem|
|
||||||
status = " #{Formatter.success("[corrected]")}" if problem.fetch(:corrected)
|
status = " #{Formatter.success("[corrected]")}" if problem.fetch(:corrected)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user