Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions gems/rubocop/1.57/rubocop.rbs
Original file line number Diff line number Diff line change
Expand Up @@ -193,16 +193,20 @@ module RuboCop
end
end

# Patch to RuboCop::AST::*
# Patch to RuboCop::AST::* and Parser::Source::Comment

module RuboCop
module AST
class Comment
include Ext::Comment
end

class ProcessedSource
include Ext::ProcessedSource
end
end
end

module Parser
class Source

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
class Source
module Source

The test output shows:

Duplicated declaration: ::Parser::Source (RBS::DuplicatedDeclarationError)

::Parser::Source is already defined as a module:

Changing this should resolve the issue.

class Comment
include RuboCop::Ext::Comment
end
end
end
Loading