Skip to content

Commit

Permalink
RBI files instead of littering include Kernel everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
issyl0 committed Aug 20, 2024
1 parent 6875e4a commit 8d51112
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 6 deletions.
2 changes: 0 additions & 2 deletions lib/test_bot.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@

module Homebrew
module TestBot
include Kernel

module_function

GIT = "/usr/bin/git"
Expand Down
7 changes: 7 additions & 0 deletions lib/test_bot.rbi
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# typed: strict

module Homebrew
module TestBot
include Kernel
end
end
7 changes: 7 additions & 0 deletions lib/test_cleanup.rbi
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# typed: strict

module Homebrew
class TestCleanup
include Kernel
end
end
2 changes: 0 additions & 2 deletions lib/test_formulae.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
module Homebrew
module Tests
class TestFormulae < Test
include Kernel

attr_accessor :skipped_or_failed_formulae
attr_reader :artifact_cache

Expand Down
7 changes: 7 additions & 0 deletions lib/test_formulae.rbi
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# typed: strict

module Homebrew
module TestFormulae
include Kernel
end
end
2 changes: 0 additions & 2 deletions lib/test_runner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@

module Homebrew
module TestRunner
include Kernel

module_function

def ensure_blank_file_exists!(file)
Expand Down
7 changes: 7 additions & 0 deletions lib/test_runner.rbi
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# typed: strict

module Homebrew
module TestRunner
include Kernel
end
end

0 comments on commit 8d51112

Please sign in to comment.