sorbet: Comment more files that can't be strict
because of undef
- Found with `grep -rL "# typed: strict" Library/Homebrew | xargs grep -l "undef "`. - This stops people from trying to bump them and getting an error that they can't fix because [it's a Sorbet limitation](https://sorbet.org/docs/error-reference#3008), wasting contributor time.
This commit is contained in:
parent
eaa5204b20
commit
0e81efcccb
@ -1,4 +1,4 @@
|
|||||||
# typed: true
|
# typed: true # This cannot be `# typed: strict` due to the use of `undef`.
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require "ostruct"
|
require "ostruct"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# typed: true
|
# typed: true # This cannot be `# typed: strict` due to the use of `undef`.
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
module Homebrew
|
module Homebrew
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# typed: true
|
# typed: true # This cannot be `# typed: strict` due to the use of `undef`.
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require "os/linux/glibc"
|
require "os/linux/glibc"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# typed: true
|
# typed: true # This cannot be `# typed: strict` due to the use of `undef`.
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require "tempfile"
|
require "tempfile"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# typed: true
|
# typed: true # This cannot be `# typed: strict` due to the use of `undef`.
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class Formula
|
class Formula
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# typed: true
|
# typed: true # This cannot be `# typed: strict` due to the use of `undef`.
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class FormulaInstaller
|
class FormulaInstaller
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# typed: true
|
# typed: true # This cannot be `# typed: strict` due to the use of `undef`.
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class Keg
|
class Keg
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# typed: true
|
# typed: true # This cannot be `# typed: strict` due to the use of `undef`.
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
module Homebrew
|
module Homebrew
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# typed: true
|
# typed: true # This cannot be `# typed: strict` due to the use of `undef`.
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
module Homebrew
|
module Homebrew
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# typed: true
|
# typed: true # This cannot be `# typed: strict` due to the use of `undef`.
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class Cleaner
|
class Cleaner
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# typed: true
|
# typed: true # This cannot be `# typed: strict` due to the use of `undef`.
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
module Homebrew
|
module Homebrew
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# typed: true
|
# typed: true # This cannot be `# typed: strict` due to the use of `undef`.
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class DependencyCollector
|
class DependencyCollector
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# typed: true
|
# typed: true # This cannot be `# typed: strict` due to the use of `undef`.
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
module Homebrew
|
module Homebrew
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# typed: true
|
# typed: true # This cannot be `# typed: strict` due to the use of `undef`.
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require "os/mac/xcode"
|
require "os/mac/xcode"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# typed: true
|
# typed: true # This cannot be `# typed: strict` due to the use of `undef`.
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
module Homebrew
|
module Homebrew
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# typed: true
|
# typed: true # This cannot be `# typed: strict` due to the use of `undef`.
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
module Stdenv
|
module Stdenv
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# typed: true
|
# typed: true # This cannot be `# typed: strict` due to the use of `undef`.
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
module Superenv
|
module Superenv
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# typed: true
|
# typed: true # This cannot be `# typed: strict` due to the use of `undef`.
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class Formula
|
class Formula
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# typed: true
|
# typed: true # This cannot be `# typed: strict` due to the use of `undef`.
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class FormulaInstaller
|
class FormulaInstaller
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# typed: true
|
# typed: true # This cannot be `# typed: strict` due to the use of `undef`.
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require "macho"
|
require "macho"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# typed: true
|
# typed: true # This cannot be `# typed: strict` due to the use of `undef`.
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require "system_command"
|
require "system_command"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# typed: true
|
# typed: true # This cannot be `# typed: strict` due to the use of `undef`.
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class Keg
|
class Keg
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# typed: true
|
# typed: true # This cannot be `# typed: strict` due to the use of `undef`.
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
class LinkageChecker
|
class LinkageChecker
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# typed: true
|
# typed: true # This cannot be `# typed: strict` due to the use of `undef`.
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
module Readall
|
module Readall
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# typed: true
|
# typed: true # This cannot be `# typed: strict` due to the use of `undef`.
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
module Homebrew
|
module Homebrew
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# typed: true
|
# typed: true # This cannot be `# typed: strict` due to the use of `undef`.
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require "system_command"
|
require "system_command"
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
# typed: true
|
# typed: true # This cannot be `# typed: strict` due to the use of `undef`.
|
||||||
# frozen_string_literal: true
|
# frozen_string_literal: true
|
||||||
|
|
||||||
require "warnings"
|
require "warnings"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user