Skip to content

Commit d4afdc6

Browse files
authored
Merge pull request #21693 from Homebrew/brew_style_fix_rbi
Remove `rubocop:todo` from RBI files.
2 parents 0f5d13c + b84186e commit d4afdc6

9 files changed

Lines changed: 15 additions & 15 deletions

File tree

Library/Homebrew/dependencies.rbi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class Dependencies < SimpleDelegator
1818
def select(&blk); end
1919
end
2020

21-
class Requirements < SimpleDelegator # rubocop:todo Style/OneClassPerFile
21+
class Requirements < SimpleDelegator
2222
include Enumerable
2323
include Kernel
2424

Library/Homebrew/download_strategy.rbi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ end
1010

1111
# This is a third-party implementation.
1212
# rubocop:disable Style/OptionalBooleanParameter
13-
class Mechanize::HTTP::ContentDispositionParser # rubocop:todo Style/OneClassPerFile
13+
class Mechanize::HTTP::ContentDispositionParser
1414
sig {
1515
params(content_disposition: String, header: T::Boolean)
1616
.returns(T.nilable(Mechanize::HTTP::ContentDisposition))

Library/Homebrew/extend/ENV.rbi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ module EnvActivation
55
end
66

77
# @!visibility private
8-
class Sorbet # rubocop:todo Style/OneClassPerFile
8+
class Sorbet
99
module Private
1010
module Static
1111
class ENVClass

Library/Homebrew/formula-analytics/pycall-setup.rbi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ class InfluxDBClient3
66
def query(*args); end
77
end
88

9-
module PyCall # rubocop:todo Style/OneClassPerFile
9+
module PyCall
1010
def self.init(*args); end
1111

1212
module Import

Library/Homebrew/on_system.rbi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ module OnSystem::MacOSOnly
55
def on_arch_conditional(arm: nil, intel: nil); end
66
end
77

8-
module OnSystem::MacOSAndLinux # rubocop:todo Style/OneClassPerFile
8+
module OnSystem::MacOSAndLinux
99
sig {
1010
params(
1111
macos: T.nilable(T.any(T::Array[T.any(String, Pathname)], String, Pathname)),

Library/Homebrew/sorbet/rbi/upstream.rbi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class Integer
1616
end
1717

1818
# https://github.com/sorbet/sorbet/pull/9847
19-
class IO # rubocop:todo Style/OneClassPerFile
19+
class IO
2020
# Waits until IO is readable and returns a truthy value, or a falsy value when
2121
# times out. Returns a truthy value immediately when buffered data is available.
2222
#

Library/Homebrew/startup/bootsnap.rbi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ module Homebrew
2222
end
2323
end
2424

25-
module Bootsnap # rubocop:todo Style/OneClassPerFile
25+
module Bootsnap
2626
sig {
2727
params(
2828
cache_dir: String,
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# typed: strict
22

33
class TestCat < Homebrew::AbstractCommand; end
4-
class Tac < Homebrew::AbstractCommand; end # rubocop:todo Style/OneClassPerFile
4+
class Tac < Homebrew::AbstractCommand; end

Library/Homebrew/test/support/fixtures/rubocop@x.x.x.rbi

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ class Parser::Source::Comment
77
include ::RuboCop::Ext::Comment
88
end
99

10-
class Parser::Source::Range # rubocop:todo Style/OneClassPerFile
10+
class Parser::Source::Range
1111
include ::RuboCop::Ext::Range
1212
end
1313

@@ -17,7 +17,7 @@ RuboCop::CLI::STATUS_SUCCESS = T.let(T.unsafe(nil).freeze, Integer)
1717

1818
RuboCop::CommentConfig::CONFIG_DISABLED_LINE_RANGE_MIN = T.let(T.unsafe(nil).freeze, Float)
1919

20-
class RuboCop::Config # rubocop:todo Style/OneClassPerFile
20+
class RuboCop::Config
2121
include ::RuboCop::PathUtil
2222
include ::RuboCop::FileFinder
2323
extend ::RuboCop::SimpleForwardable
@@ -33,7 +33,7 @@ end
3333

3434
RuboCop::Token = RuboCop::AST::Token
3535

36-
class RuboCop::Cop::Base # rubocop:todo Style/OneClassPerFile
36+
class RuboCop::Cop::Base
3737
include ::RuboCop::AST::Sexp
3838
include ::RuboCop::PathUtil
3939
include ::RuboCop::Cop::Util
@@ -49,17 +49,17 @@ class RuboCop::Cop::Base # rubocop:todo Style/OneClassPerFile
4949
def initialize(config = T.unsafe(nil), options = T.unsafe(nil)); end
5050
end
5151

52-
class RuboCop::Cop::SomeUnusedCop < RuboCop::Cop::Base # rubocop:todo Style/OneClassPerFile
52+
class RuboCop::Cop::SomeUnusedCop < RuboCop::Cop::Base
5353
def on_send(_node); end
5454
end
5555

56-
module RuboCop::Cop::UnusedModule; end # rubocop:todo Style/OneClassPerFile
56+
module RuboCop::Cop::UnusedModule; end
5757

58-
class CompletelyUnrelated # rubocop:todo Style/OneClassPerFile
58+
class CompletelyUnrelated
5959
def bananas; end
6060
end
6161

62-
module RuboCop::Version # rubocop:todo Style/OneClassPerFile
62+
module RuboCop::Version
6363
class << self
6464
# @api private
6565
#

0 commit comments

Comments
 (0)