cleaner: use typed: strict

Signed-off-by: Patrick Linnane <patrick@linnane.io>
This commit is contained in:
Patrick Linnane 2024-08-18 19:03:26 -04:00
parent 2374e988d4
commit 444d4caef5
No known key found for this signature in database

View File

@ -1,4 +1,4 @@
# typed: true # rubocop:todo Sorbet/StrictSigil # typed: strict
# frozen_string_literal: true # frozen_string_literal: true
# Cleans a newly installed keg. # Cleans a newly installed keg.
@ -113,7 +113,7 @@ class Cleaner
# pointless conflicts with other formulae. They are removed by Debian, # pointless conflicts with other formulae. They are removed by Debian,
# Arch & MacPorts amongst other packagers as well. The files are # Arch & MacPorts amongst other packagers as well. The files are
# created as part of installing any Perl module. # created as part of installing any Perl module.
PERL_BASENAMES = Set.new(%w[perllocal.pod .packlist]).freeze PERL_BASENAMES = T.let(Set.new(%w[perllocal.pod .packlist]).freeze, T::Set[String])
# Clean a top-level (`bin`, `sbin`, `lib`) directory, recursively, by fixing file # Clean a top-level (`bin`, `sbin`, `lib`) directory, recursively, by fixing file
# permissions and removing .la files, unless the files (or parent # permissions and removing .la files, unless the files (or parent