Skip to content

Commit d113984

Browse files
authored
1 parent 1959cc3 commit d113984

1 file changed

Lines changed: 18 additions & 1 deletion

File tree

gems/rubocop/1.57/rubocop.rbs

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,9 @@ module RuboCop
3535

3636
attr_reader config: Config
3737

38+
def on_new_investigation: () -> void
39+
def on_investigation_end: () -> void
40+
def on_other_file: () -> void
3841
def add_offense: (untyped node, ?message: String, ?severity: Symbol) -> void
3942
| (untyped node, ?message: String, ?severity: Symbol) { (Corrector) -> void } -> void
4043
def cop_config: () -> Hash[String, untyped]
@@ -72,6 +75,11 @@ module RuboCop
7275
end
7376

7477
module ConfigurableEnforcedStyle
78+
def opposite_style_detected: () -> void
79+
def correct_style_detected: () -> void
80+
def unexpected_style_detected: (Symbol unexpected) -> void
81+
def ambiguous_style_detected: (*Symbol possibilities) -> void
82+
def style_detected: (Symbol detected) -> void
7583
def style: () -> Symbol
7684
end
7785

@@ -150,6 +158,11 @@ module RuboCop
150158
end
151159

152160
module Ext
161+
module Comment
162+
def source: () -> String
163+
def source_range: () -> Parser::Source::Range
164+
end
165+
153166
module ProcessedSource
154167
attr_accessor registry: Cop::Registry
155168
attr_accessor config: Config
@@ -180,10 +193,14 @@ module RuboCop
180193
end
181194
end
182195

183-
# Patch to RuboCop::AST::ProcessedSource
196+
# Patch to RuboCop::AST::*
184197

185198
module RuboCop
186199
module AST
200+
class Comment
201+
include Ext::Comment
202+
end
203+
187204
class ProcessedSource
188205
include Ext::ProcessedSource
189206
end

0 commit comments

Comments
 (0)