Skip to content

Commit

Permalink
Merge pull request #489 from soutaro/rubocop-autocorrector
Browse files Browse the repository at this point in the history
Fix RuboCop type definition
  • Loading branch information
soutaro authored Dec 5, 2023
2 parents 9639942 + 81c9ef2 commit 20e6e0f
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions gems/rubocop/1.57/rubocop.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ module RuboCop
class Base
extend AST::NodePattern::Macros

def add_offense: (untyped node, ?message: String) -> void |
(untyped node, ?message: String) {(Corrector) -> void} -> void
def add_offense: (untyped node, ?message: String, ?severity: Symbol) -> void |
(untyped node, ?message: String, ?severity: Symbol) {(Corrector) -> void} -> void
def cop_config: () -> Hash[String, untyped]
def processed_source: () -> AST::ProcessedSource
end
Expand All @@ -27,4 +27,8 @@ module RuboCop
end

class ProcessedSource = AST::ProcessedSource

module AutoCorrector
def support_autocorrect?: () -> true
end
end

0 comments on commit 20e6e0f

Please sign in to comment.